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 * 17 * @since Interface available since Release 1.0.0 18 */ 19interface PHPUnit_Framework_MockObject_MockObject /*extends PHPUnit_Framework_MockObject_Verifiable*/ 20{ 21 /** 22 * Registers a new expectation in the mock object and returns the match 23 * object which can be infused with further details. 24 * 25 * @param PHPUnit_Framework_MockObject_Matcher_Invocation $matcher 26 * 27 * @return PHPUnit_Framework_MockObject_Builder_InvocationMocker 28 */ 29 public function expects(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher); 30 31 /** 32 * @return PHPUnit_Framework_MockObject_InvocationMocker 33 * 34 * @since Method available since Release 2.0.0 35 */ 36 public function __phpunit_setOriginalObject($originalObject); 37 38 /** 39 * @return PHPUnit_Framework_MockObject_InvocationMocker 40 */ 41 public function __phpunit_getInvocationMocker(); 42 43 /** 44 * Verifies that the current expectation is valid. If everything is OK the 45 * code should just return, if not it must throw an exception. 46 * 47 * @throws PHPUnit_Framework_ExpectationFailedException 48 */ 49 public function __phpunit_verify(); 50 51 /** 52 * @return bool 53 */ 54 public function __phpunit_hasMatchers(); 55} 56