Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: Chris@14: use PHPUnit\Framework\ExpectationFailedException; Chris@14: use PHPUnit\Framework\MockObject\Builder\InvocationMocker; Chris@14: use PHPUnit\Framework\MockObject\Matcher\Invocation; Chris@14: Chris@14: /** Chris@14: * Interface for all mock objects which are generated by Chris@14: * MockBuilder. Chris@14: * Chris@14: * @method InvocationMocker method($constraint) Chris@14: */ Chris@14: interface PHPUnit_Framework_MockObject_MockObject /*extends Verifiable*/ Chris@14: { Chris@14: /** Chris@14: * Registers a new expectation in the mock object and returns the match Chris@14: * object which can be infused with further details. Chris@14: * Chris@14: * @param Invocation $matcher Chris@14: * Chris@14: * @return InvocationMocker Chris@14: */ Chris@14: public function expects(Invocation $matcher); Chris@14: Chris@14: /** Chris@14: * @return InvocationMocker Chris@14: */ Chris@14: public function __phpunit_setOriginalObject($originalObject); Chris@14: Chris@14: /** Chris@14: * @return InvocationMocker Chris@14: */ Chris@14: public function __phpunit_getInvocationMocker(); Chris@14: Chris@14: /** Chris@14: * Verifies that the current expectation is valid. If everything is OK the Chris@14: * code should just return, if not it must throw an exception. Chris@14: * Chris@14: * @throws ExpectationFailedException Chris@14: */ Chris@14: public function __phpunit_verify(); Chris@14: Chris@14: /** Chris@14: * @return bool Chris@14: */ Chris@14: public function __phpunit_hasMatchers(); Chris@14: }