Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: /** Chris@0: * Interface for classes which can be invoked. Chris@0: * Chris@0: * The invocation will be taken from a mock object and passed to an object Chris@0: * of this class. Chris@0: * Chris@0: * @since Interface available since Release 1.0.0 Chris@0: */ Chris@0: interface PHPUnit_Framework_MockObject_Invokable extends PHPUnit_Framework_MockObject_Verifiable Chris@0: { Chris@0: /** Chris@0: * Invokes the invocation object $invocation so that it can be checked for Chris@0: * expectations or matched against stubs. Chris@0: * Chris@0: * @param PHPUnit_Framework_MockObject_Invocation $invocation Chris@0: * The invocation object passed from mock object. Chris@0: * @return object Chris@0: */ Chris@0: public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation); Chris@0: Chris@0: /** Chris@0: * Checks if the invocation matches. Chris@0: * Chris@0: * @param PHPUnit_Framework_MockObject_Invocation $invocation Chris@0: * The invocation object passed from mock object. Chris@0: * @return bool Chris@0: */ Chris@0: public function matches(PHPUnit_Framework_MockObject_Invocation $invocation); Chris@0: }