protected function PHPUnit_Framework_Constraint::failureDescription

Returns the description of the failure

The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.

To provide additional failure information additionalFailureDescription can be used.

Parameters

mixed $other Evaluated value or object.:

Return value

string

2 calls to PHPUnit_Framework_Constraint::failureDescription()
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
PHPUnit_Framework_Constraint_IsIdentical::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/IsIdentical.php
Returns the description of the failure
15 methods override PHPUnit_Framework_Constraint::failureDescription()
PHPUnit_Framework_Constraint_ArrayHasKey::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ArrayHasKey.php
Returns the description of the failure
PHPUnit_Framework_Constraint_Attribute::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Attribute.php
Returns the description of the failure
PHPUnit_Framework_Constraint_ClassHasAttribute::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/ClassHasAttribute.php
Returns the description of the failure
PHPUnit_Framework_Constraint_Count::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Count.php
Returns the description of the failure
PHPUnit_Framework_Constraint_Exception::failureDescription in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Constraint/Exception.php
Returns the description of the failure

... See full list

File

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

Class

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

Code

protected function failureDescription($other) {
  return PHPUnit_Util_Type::export($other) . ' ' . $this
    ->toString();
}