Chris@14: Chris@14: * Chris@14: * For the full copyright and license information, please view the LICENSE Chris@14: * file that was distributed with this source code. Chris@14: */ Chris@14: namespace PHPUnit\Framework\MockObject\Builder; Chris@14: Chris@14: use PHPUnit\Framework\MockObject\Stub as BaseStub; Chris@14: Chris@14: /** Chris@14: * Builder interface for stubs which are actions replacing an invocation. Chris@14: */ Chris@14: interface Stub extends Identity Chris@14: { Chris@14: /** Chris@14: * Stubs the matching method with the stub object $stub. Any invocations of Chris@14: * the matched method will now be handled by the stub instead. Chris@14: * Chris@14: * @param BaseStub $stub Chris@14: * Chris@14: * @return Identity Chris@14: */ Chris@14: public function will(BaseStub $stub); Chris@14: }