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

Breadcrumb

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

function MethodName::matchesName

Throws

ExpectationFailedException

1 call to MethodName::matchesName()
MethodName::matches in vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Rule/MethodName.php

File

vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Rule/MethodName.php, line 56

Class

MethodName
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Framework\MockObject\Rule

Code

public function matchesName(string $methodName) : bool {
    return (bool) $this->constraint
        ->evaluate($methodName, '', true);
}

API Navigation

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