You are here

public function Framework_TestCaseTest::testSkipsIfRequiresNonExistingOs in Zircon Profile 8

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

File

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

Class

Framework_TestCaseTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestCase

Code

public function testSkipsIfRequiresNonExistingOs() {
  $test = new RequirementsTest('testAlwaysSkip3');
  $result = $test
    ->run();
  $this
    ->assertEquals(1, $result
    ->skippedCount());
  $this
    ->assertEquals('Operating system matching /DOESNOTEXIST/i is required.', $test
    ->getStatusMessage());
}