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 * An object that stubs the process of a normal method for a mock object.
14 * The stub object will replace the code for the stubbed method and return a
15 * specific value instead of the original value.
17 * @since Interface available since Release 1.0.0
19 interface PHPUnit_Framework_MockObject_Stub extends PHPUnit_Framework_SelfDescribing
22 * Fakes the processing of the invocation $invocation by returning a
25 * @param PHPUnit_Framework_MockObject_Invocation $invocation
26 * The invocation which was mocked and matched by the current method
27 * and argument matchers.
30 public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);