File
- drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php, line 204
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 testException() {
$test = new ThrowExceptionTestCase('test');
$test
->setExpectedException('RuntimeException');
$result = $test
->run();
$this
->assertEquals(1, count($result));
$this
->assertTrue($result
->wasSuccessful());
}