interface PHPUnit_Framework_MockObject_Builder_Stub in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php \PHPUnit_Framework_MockObject_Builder_Stub
Builder interface for stubs which are actions replacing an invocation.
@since Interface available since Release 1.0.0
Hierarchy
- interface \PHPUnit_Framework_MockObject_Builder_Identity
- interface \PHPUnit_Framework_MockObject_Builder_Stub
Expanded class hierarchy of PHPUnit_Framework_MockObject_Builder_Stub
All classes that implement PHPUnit_Framework_MockObject_Builder_Stub
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ Stub.php, line 16
View source
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);
}
Members
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 |