1<?php
2/*
3 * This file is part of PHPUnit.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11class Framework_TestFailureTest extends PHPUnit_Framework_TestCase
12{
13    public function testToString()
14    {
15        $test      = new self(__FUNCTION__);
16        $exception = new PHPUnit_Framework_Exception('message');
17        $failure   = new PHPUnit_Framework_TestFailure($test, $exception);
18
19        $this->assertEquals(__METHOD__ . ': message', $failure->toString());
20    }
21}
22