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