Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Stub.php

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.

... See full list

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\Stub

Code

public function invoke(Invocation $invocation) : mixed;
RSS feed
Powered by Drupal