@covers PHPUnit_Framework_TestFailure::toString
File
- drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestFailureTest.php, line 60
Class
- Framework_TestFailureTest
- @package PHPUnit
@author Sebastian Bergmann <sebastian@phpunit.de>
@copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de>
@license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
@link …
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());
}