3 * This file is part of the PHPUnit_MockObject package.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Interface for all mock objects which are generated by
13 * PHPUnit_Framework_MockObject_MockBuilder.
15 * @method PHPUnit_Framework_MockObject_Builder_InvocationMocker method($constraint)
16 * @since Interface available since Release 1.0.0
18 interface PHPUnit_Framework_MockObject_MockObject /*extends PHPUnit_Framework_MockObject_Verifiable*/
21 * Registers a new expectation in the mock object and returns the match
22 * object which can be infused with further details.
24 * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher
25 * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker
27 public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher);
30 * @return PHPUnit_Framework_MockObject_InvocationMocker
31 * @since Method available since Release 2.0.0
33 public function __phpunit_setOriginalObject($originalObject);
36 * @return PHPUnit_Framework_MockObject_InvocationMocker
38 public function __phpunit_getInvocationMocker();
41 * Verifies that the current expectation is valid. If everything is OK the
42 * code should just return, if not it must throw an exception.
44 * @throws PHPUnit_Framework_ExpectationFailedException
46 public function __phpunit_verify();