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