PHPUnit_Framework_MockObject_MockObject
in
Interface for all mock objects which are generated by PHPUnit_Framework_MockObject_MockBuilder.
Tags
Table of Contents
- __phpunit_getInvocationMocker() : PHPUnit_Framework_MockObject_InvocationMocker
- __phpunit_setOriginalObject() : PHPUnit_Framework_MockObject_InvocationMocker
- __phpunit_verify() : mixed
- Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
- expects() : PHPUnit_Framework_MockObject_Builder_InvocationMocker
- Registers a new expectation in the mock object and returns the match object which can be infused with further details.
Methods
__phpunit_getInvocationMocker()
public
__phpunit_getInvocationMocker() : PHPUnit_Framework_MockObject_InvocationMocker
Return values
PHPUnit_Framework_MockObject_InvocationMocker —__phpunit_setOriginalObject()
public
__phpunit_setOriginalObject(mixed $originalObject) : PHPUnit_Framework_MockObject_InvocationMocker
Parameters
- $originalObject : mixed
Tags
Return values
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.
public
__phpunit_verify() : mixed
Tags
Return values
mixed —expects()
Registers a new expectation in the mock object and returns the match object which can be infused with further details.
public
expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher) : PHPUnit_Framework_MockObject_Builder_InvocationMocker