public function Framework_TestCaseTest::testNoException in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php \Framework_TestCaseTest::testNoException()
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ TestCaseTest.php, line 266
Class
- Framework_TestCaseTest
- @since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestCase
Code
public function testNoException() {
$test = new ThrowNoExceptionTestCase('test');
$test
->setExpectedException('RuntimeException');
$result = $test
->run();
$this
->assertEquals(1, $result
->failureCount());
$this
->assertEquals(1, count($result));
}