You are here

public function PHPUnit_Framework_TestFailure::failedTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestFailure.php \PHPUnit_Framework_TestFailure::failedTest()

Returns the failing test.

Note: The test object is not set when the test is executed in process isolation.

Return value

PHPUnit_Framework_Test|null

See also

PHPUnit_Framework_Exception

File

vendor/phpunit/phpunit/src/Framework/TestFailure.php, line 128

Class

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

Code

public function failedTest() {
  return $this->failedTest;
}