interface Stub
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Stub/Stub.php \PHPUnit\Framework\MockObject\Stub\Stub
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Interface/Stub.php \PHPUnit\Framework\MockObject\Stub
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- interface \PHPUnit\Framework\MockObject\Builder\Identity
- interface \PHPUnit\Framework\MockObject\Builder\Stub extends \PHPUnit\Framework\MockObject\Builder\Identity
Expanded class hierarchy of Stub
All classes that implement Stub
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Builder/ Stub.php, line 19
Namespace
PHPUnit\Framework\MockObject\BuilderView source
interface Stub extends Identity {
/**
* Stubs the matching method with the stub object $stub. Any invocations of
* the matched method will now be handled by the stub instead.
*/
public function will(BaseStub $stub) : Identity;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
Identity::id | public | function | Sets the identification of the expectation to $id. | 1 |
Stub::will | 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. |