function Stub::invoke
Fakes the processing of the invocation $invocation by returning a specific value.
8 methods override Stub::invoke()
- ConsecutiveCalls::invoke in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ ConsecutiveCalls.php - Exception::invoke in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ Exception.php - ReturnArgument::invoke in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ ReturnArgument.php - Fakes the processing of the invocation $invocation by returning a specific value.
- ReturnCallback::invoke in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ ReturnCallback.php - Fakes the processing of the invocation $invocation by returning a specific value.
- ReturnReference::invoke in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ ReturnReference.php - Fakes the processing of the invocation $invocation by returning a specific value.
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Stub/ Stub.php, line 25
Class
- Stub
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\Framework\MockObject\StubCode
public function invoke(Invocation $invocation) : mixed;