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 classes which can be invoked.
14 * The invocation will be taken from a mock object and passed to an object
17 * @since Interface available since Release 1.0.0
19 interface PHPUnit_Framework_MockObject_Invokable extends PHPUnit_Framework_MockObject_Verifiable
22 * Invokes the invocation object $invocation so that it can be checked for
23 * expectations or matched against stubs.
25 * @param PHPUnit_Framework_MockObject_Invocation $invocation
26 * The invocation object passed from mock object.
29 public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);
32 * Checks if the invocation matches.
34 * @param PHPUnit_Framework_MockObject_Invocation $invocation
35 * The invocation object passed from mock object.
38 public function matches(PHPUnit_Framework_MockObject_Invocation $invocation);