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

Breadcrumb

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

interface MethodNameMatch

@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
      • interface \PHPUnit\Framework\MockObject\Builder\ParametersMatch extends \PHPUnit\Framework\MockObject\Builder\Stub
        • interface \PHPUnit\Framework\MockObject\Builder\MethodNameMatch extends \PHPUnit\Framework\MockObject\Builder\ParametersMatch

Expanded class hierarchy of MethodNameMatch

All classes that implement MethodNameMatch

File

vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Builder/MethodNameMatch.php, line 19

Namespace

PHPUnit\Framework\MockObject\Builder
View source
interface MethodNameMatch extends ParametersMatch {
    
    /**
     * Adds a new method name match and returns the parameter match object for
     * further matching possibilities.
     */
    public function method(Constraint|string $constraint) : self;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
Identity::id public function Sets the identification of the expectation to $id. 1
MethodNameMatch::method public function Adds a new method name match and returns the parameter match object for
further matching possibilities.
1
ParametersMatch::after public function Defines the expectation which must occur before the current is valid. 1
ParametersMatch::with public function Sets the parameters to match for, each parameter to this function will
be part of match. To perform specific matches or constraints create a
new PHPUnit\Framework\Constraint\Constraint and use it for the parameter.
If the parameter value is not a…
1
ParametersMatch::withAnyParameters public function Sets a rule which allows any kind of parameters. 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