Documentation

PHPUnit_Framework_MockObject_Builder_InvocationMocker
in package
implements PHPUnit_Framework_MockObject_Builder_MethodNameMatch

Builder for mocked or stubbed invocations.

Provides methods for building expectations without having to resort to instantiating the various matchers manually. These methods also form a more natural way of reading the expectation. This class should be together with the test case PHPUnit_Framework_MockObject_TestCase.

Tags
since

Class available since Release 1.0.0

Interfaces, Classes and Traits

PHPUnit_Framework_MockObject_Builder_MethodNameMatch
Builder interface for matcher of method names.

Table of Contents

$collection  : PHPUnit_Framework_MockObject_Stub_MatcherCollection
$matcher  : PHPUnit_Framework_MockObject_Matcher
__construct()  : mixed
after()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
getMatcher()  : PHPUnit_Framework_MockObject_Matcher
id()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
method()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
Adds a new method name match and returns the parameter match object for further matching possibilities.
will()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturn()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturnArgument()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturnCallback()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturnMap()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturnOnConsecutiveCalls()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willReturnSelf()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
willThrowException()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
with()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
withAnyParameters()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
withConsecutive()  : PHPUnit_Framework_MockObject_Builder_InvocationMocker
canDefineParameters()  : mixed
Validate that a parameters matcher can be defined, throw exceptions otherwise.

Properties

Methods

Search results