class PHPUnit_Framework_TestFailure

A TestFailure collects a failed test together with the caught exception.

@package PHPUnit @subpackage Framework @author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link http://www.phpunit.de/ @since Class available since Release 2.0.0

Hierarchy

Expanded class hierarchy of PHPUnit_Framework_TestFailure

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php, line 57

View source

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_TestFailure::$failedTest protected property
PHPUnit_Framework_TestFailure::$thrownException protected property
PHPUnit_Framework_TestFailure::exceptionMessage public function Returns the exception's message.
PHPUnit_Framework_TestFailure::exceptionToString public static function Returns a description for an exception.
PHPUnit_Framework_TestFailure::failedTest public function Gets the failed test.
PHPUnit_Framework_TestFailure::getExceptionAsString public function Returns a description for the thrown exception.
PHPUnit_Framework_TestFailure::isFailure public function Returns TRUE if the thrown exception is of type AssertionFailedError.
PHPUnit_Framework_TestFailure::thrownException public function Gets the thrown exception.
PHPUnit_Framework_TestFailure::toString public function Returns a short description of the failure.
PHPUnit_Framework_TestFailure::__construct public function Constructs a TestFailure with the given test and exception.