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