interface PHPUnit_Framework_MockObject_MockObject (View source)

Interface for all mock objects which are generated by PHPUnitFrameworkMockObject_MockBuilder.

Methods

expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)

Registers a new expectation in the mock object and returns the match object which can be infused with further details.

__phpunit_verify()

Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

bool
__phpunit_hasMatchers()

No description

Details

PHPUnit_Framework_MockObject_Builder_InvocationMocker expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)

Registers a new expectation in the mock object and returns the match object which can be infused with further details.

PHPUnit_Framework_MockObject_InvocationMocker __phpunit_setOriginalObject($originalObject)

Parameters

$originalObject

Return Value

PHPUnit_Framework_MockObject_InvocationMocker

__phpunit_verify()

Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

Exceptions

ExpectationFailedException

bool __phpunit_hasMatchers()

Return Value

bool