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