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 * Builder interface for stubs which are actions replacing an invocation.
14 * @since Interface available since Release 1.0.0
16 interface PHPUnit_Framework_MockObject_Builder_Stub extends PHPUnit_Framework_MockObject_Builder_Identity
19 * Stubs the matching method with the stub object $stub. Any invocations of
20 * the matched method will now be handled by the stub instead.
22 * @param PHPUnit_Framework_MockObject_Stub $stub The stub object.
23 * @return PHPUnit_Framework_MockObject_Builder_Identity
25 public function will(PHPUnit_Framework_MockObject_Stub $stub);