PHPUnit_Framework_MockObject_Builder_InvocationMocker
class PHPUnit_Framework_MockObject_Builder_InvocationMocker implements PHPUnit_Framework_MockObject_Builder_MethodNameMatch (View source)
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 PHPUnitFrameworkMockObject_TestCase.
Properties
protected PHPUnit_Framework_MockObject_Stub_MatcherCollection | $collection | ||
protected PHPUnit_Framework_MockObject_Matcher | $matcher |
Methods
__construct(PHPUnit_Framework_MockObject_Stub_MatcherCollection $collection, PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher, array $configurableMethods)
No description
getMatcher()
No description
id(string $id)
No description
willReturn($value, $nextValues)
No description
willReturnReference(mixed $reference)
No description
willReturnMap(array $valueMap)
No description
willReturnArgument(mixed $argumentIndex)
No description
willReturnCallback(callable $callback)
No description
willReturnSelf()
No description
willReturnOnConsecutiveCalls($values)
No description
after(string $id)
No description
with($arguments)
No description
withConsecutive(array $arguments)
No description
withAnyParameters()
No description
method(PHPUnit_Framework_Constraint|string $constraint)
No description