Builder interface for stubs which are actions replacing an invocation.
@package PHPUnit_MockObject @author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @version Release: @package_version@ @link http://github.com/sebastianbergmann/phpunit-mock-objects @since Interface available since Release 1.0.0
Expanded class hierarchy of PHPUnit_Framework_MockObject_Builder_Stub
All classes that implement PHPUnit_Framework_MockObject_Builder_Stub
interface PHPUnit_Framework_MockObject_Builder_Stub extends PHPUnit_Framework_MockObject_Builder_Identity {
/**
* Stubs the matching method with the stub object $stub. Any invocations of
* the matched method will now be handled by the stub instead.
*
* @param PHPUnit_Framework_MockObject_Stub $stub The stub object.
* @return PHPUnit_Framework_MockObject_Builder_Identity
*/
public function will(PHPUnit_Framework_MockObject_Stub $stub);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPUnit_Framework_MockObject_Builder_Identity:: |
public | function | Sets the identification of the expectation to $id. | 1 |
PHPUnit_Framework_MockObject_Builder_Stub:: |
public | function | Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead. | 1 |