You are here

public function Framework_TestFailureTest::testToString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php \Framework_TestFailureTest::testToString()

@covers PHPUnit_Framework_TestFailure::toString

File

vendor/phpunit/phpunit/tests/Framework/TestFailureTest.php, line 19

Class

Framework_TestFailureTest
@since File available since Release 3.7.20

Code

public function testToString() {
  $test = new self(__FUNCTION__);
  $exception = new PHPUnit_Framework_Exception('message');
  $failure = new PHPUnit_Framework_TestFailure($test, $exception);
  $this
    ->assertEquals(__METHOD__ . ': message', $failure
    ->toString());
}