You are here

public function Framework_TestCaseTest::testIncomplete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php \Framework_TestCaseTest::testIncomplete()

File

vendor/phpunit/phpunit/tests/Framework/TestCaseTest.php, line 94

Class

Framework_TestCaseTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestCase

Code

public function testIncomplete() {
  $test = new TestIncomplete();
  $result = $test
    ->run();
  $this
    ->assertEquals(PHPUnit_Runner_BaseTestRunner::STATUS_INCOMPLETE, $test
    ->getStatus());
  $this
    ->assertEquals('Incomplete test', $test
    ->getStatusMessage());
  $this
    ->assertEquals(0, $result
    ->errorCount());
  $this
    ->assertEquals(0, $result
    ->failureCount());
  $this
    ->assertEquals(0, $result
    ->skippedCount());
  $this
    ->assertEquals(1, count($result));
}