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