File
- drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php, line 215
Class
- Framework_TestCaseTest
- @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 testNoException() {
$test = new ThrowNoExceptionTestCase('test');
$test
->setExpectedException('RuntimeException');
$result = $test
->run();
$this
->assertEquals(1, $result
->failureCount());
$this
->assertEquals(1, count($result));
}