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

Breadcrumb

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

interface Stub

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Stub/Stub.php \PHPUnit\Framework\MockObject\Stub\Stub
  2. 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\Builder
View 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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal