public function Framework_TestCaseTest::testSuccess in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php \Framework_TestCaseTest::testSuccess()
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ TestCaseTest.php, line 45
Class
- Framework_TestCaseTest
- @since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestCase
Code
public function testSuccess() {
$test = new Success();
$result = $test
->run();
$this
->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_PASSED, $test
->getStatus());
$this
->assertEquals(0, $result
->errorCount());
$this
->assertEquals(0, $result
->failureCount());
$this
->assertEquals(0, $result
->skippedCount());
$this
->assertEquals(1, count($result));
}