3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * @since File available since Release 3.7.20
14 class Framework_TestFailureTest extends PHPUnit_Framework_TestCase
17 * @covers PHPUnit_Framework_TestFailure::toString
19 public function testToString()
21 $test = new self(__FUNCTION__);
22 $exception = new PHPUnit_Framework_Exception('message');
23 $failure = new PHPUnit_Framework_TestFailure($test, $exception);
25 $this->assertEquals(__METHOD__ . ': message', $failure->toString());