public function PHPUnit_Framework_MockObject_MockObject::expects

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

Parameters

PHPUnit_Framework_MockObject_Matcher_Invocation $matcher:

Return value

PHPUnit_Framework_MockObject_Builder_InvocationMocker

File

drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/MockObject.php, line 66

Class

PHPUnit_Framework_MockObject_MockObject
Interface for all mock objects which are generated by PHPUnit_Framework_MockObject_Mock.

Code

public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);