db backup prior to drupal security update
[yaffs-website] / vendor / phpunit / phpunit / tests / Framework / TestFailureTest.php
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
11 /**
12  * @since      File available since Release 3.7.20
13  */
14 class Framework_TestFailureTest extends PHPUnit_Framework_TestCase
15 {
16     /**
17      * @covers PHPUnit_Framework_TestFailure::toString
18      */
19     public function testToString()
20     {
21         $test      = new self(__FUNCTION__);
22         $exception = new PHPUnit_Framework_Exception('message');
23         $failure   = new PHPUnit_Framework_TestFailure($test, $exception);
24
25         $this->assertEquals(__METHOD__ . ': message', $failure->toString());
26     }
27 }