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

Breadcrumb

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

function Constraint::matches

Same name in this branch
  1. 11.1.x vendor/composer/semver/src/Constraint/Constraint.php \Composer\Semver\Constraint\Constraint::matches()

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

This method can be overridden to implement the evaluation algorithm.

1 call to Constraint::matches()
Constraint::evaluate in vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
Evaluates the constraint for parameter $other.
70 methods override Constraint::matches()
ArrayHasKey::matches in vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/ArrayHasKey.php
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
BrowserCookieValueSame::matches in vendor/symfony/browser-kit/Test/Constraint/BrowserCookieValueSame.php
BrowserHasCookie::matches in vendor/symfony/browser-kit/Test/Constraint/BrowserHasCookie.php
Callback::matches in vendor/phpunit/phpunit/src/Framework/Constraint/Callback.php
Evaluates the constraint for parameter $value. Returns true if the constraint is met, false otherwise.
CommandIsSuccessful::matches in vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

... See full list

File

vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php, line 79

Class

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

Namespace

PHPUnit\Framework\Constraint

Code

protected function matches(mixed $other) : bool {
    return false;
}

API Navigation

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