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

Breadcrumb

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

class ComparisonMethodDoesNotDeclareExactlyOneParameterException

@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

  • class \PHPUnit\Framework\Exception extends \RuntimeException implements \PHPUnit\Exception
    • class \PHPUnit\Framework\ComparisonMethodDoesNotDeclareExactlyOneParameterException extends \PHPUnit\Framework\Exception

Expanded class hierarchy of ComparisonMethodDoesNotDeclareExactlyOneParameterException

1 file declares its use of ComparisonMethodDoesNotDeclareExactlyOneParameterException
ObjectEquals.php in vendor/phpunit/phpunit/src/Framework/Constraint/Object/ObjectEquals.php

File

vendor/phpunit/phpunit/src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php, line 19

Namespace

PHPUnit\Framework
View source
final class ComparisonMethodDoesNotDeclareExactlyOneParameterException extends Exception {
    public function __construct(string $className, string $methodName) {
        parent::__construct(sprintf('Comparison method %s::%s() does not declare exactly one parameter.', $className, $methodName));
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ComparisonMethodDoesNotDeclareExactlyOneParameterException::__construct public function Overrides Exception::__construct
Exception::$serializableTrace protected property
Exception::getSerializableTrace public function Returns the serializable trace (without 'args').
Exception::__sleep public function
RSS feed
Powered by Drupal