Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: /** Chris@0: * Interface for all mock objects which are generated by Chris@0: * PHPUnit_Framework_MockObject_MockBuilder. Chris@0: * Chris@0: * @method PHPUnit_Framework_MockObject_Builder_InvocationMocker method($constraint) Chris@0: * @since Interface available since Release 1.0.0 Chris@0: */ Chris@0: interface PHPUnit_Framework_MockObject_MockObject /*extends PHPUnit_Framework_MockObject_Verifiable*/ Chris@0: { Chris@0: /** Chris@0: * Registers a new expectation in the mock object and returns the match Chris@0: * object which can be infused with further details. Chris@0: * Chris@0: * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher Chris@0: * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker Chris@0: */ Chris@0: public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); Chris@0: Chris@0: /** Chris@0: * @return PHPUnit_Framework_MockObject_InvocationMocker Chris@0: * @since Method available since Release 2.0.0 Chris@0: */ Chris@0: public function __phpunit_setOriginalObject($originalObject); Chris@0: Chris@0: /** Chris@0: * @return PHPUnit_Framework_MockObject_InvocationMocker Chris@0: */ Chris@0: public function __phpunit_getInvocationMocker(); Chris@0: Chris@0: /** Chris@0: * Verifies that the current expectation is valid. If everything is OK the Chris@0: * code should just return, if not it must throw an exception. Chris@0: * Chris@0: * @throws PHPUnit_Framework_ExpectationFailedException Chris@0: */ Chris@0: public function __phpunit_verify(); Chris@0: }