public function Framework_SuiteTest::testNoTestCases in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/Framework/SuiteTest.php \Framework_SuiteTest::testNoTestCases()
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ SuiteTest.php, line 84
Class
- Framework_SuiteTest
- @since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestSuite
Code
public function testNoTestCases() {
$suite = new PHPUnit_Framework_TestSuite('NoTestCases');
$suite
->run($this->result);
$this
->assertTrue(!$this->result
->wasSuccessful());
$this
->assertEquals(1, $this->result
->failureCount());
$this
->assertEquals(1, count($this->result));
}