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

Breadcrumb

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

function Constraint::additionalFailureDescription

Return additional failure description where needed.

The function can be overridden to provide additional failure information like a diff

1 call to Constraint::additionalFailureDescription()
Constraint::fail in vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
Throws an exception for the given compared value and test description.
7 methods override Constraint::additionalFailureDescription()
CommandIsSuccessful::additionalFailureDescription in vendor/symfony/console/Tester/Constraint/CommandIsSuccessful.php
Return additional failure description where needed.
ResponseFormatSame::additionalFailureDescription in vendor/symfony/http-foundation/Test/Constraint/ResponseFormatSame.php
ResponseIsRedirected::additionalFailureDescription in vendor/symfony/http-foundation/Test/Constraint/ResponseIsRedirected.php
ResponseIsSuccessful::additionalFailureDescription in vendor/symfony/http-foundation/Test/Constraint/ResponseIsSuccessful.php
ResponseIsUnprocessable::additionalFailureDescription in vendor/symfony/http-foundation/Test/Constraint/ResponseIsUnprocessable.php

... See full list

File

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

Class

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

Namespace

PHPUnit\Framework\Constraint

Code

protected function additionalFailureDescription(mixed $other) : string {
    return '';
}

API Navigation

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