protected function PHPUnit_Framework_Constraint::additionalFailureDescription

Return additional failure description where needed

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

Parameters

mixed $other Evaluated value or object.:

Return value

string

1 call to PHPUnit_Framework_Constraint::additionalFailureDescription()
PHPUnit_Framework_Constraint::fail in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php
Throws an exception for the given compared value and test description
1 method overrides PHPUnit_Framework_Constraint::additionalFailureDescription()
PHPUnit_Framework_Constraint_StringMatches::additionalFailureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/StringMatches.php
Return additional failure description where needed

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint.php, line 159

Class

PHPUnit_Framework_Constraint
Abstract base class for constraints. which are placed upon any value.

Code

protected function additionalFailureDescription($other) {
  return "";
}