You are here

public function Framework_SuiteTest::testDontSkipInheritedClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/SuiteTest.php \Framework_SuiteTest::testDontSkipInheritedClass()

File

vendor/phpunit/phpunit/tests/Framework/SuiteTest.php, line 229

Class

Framework_SuiteTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestSuite

Code

public function testDontSkipInheritedClass() {
  $suite = new PHPUnit_Framework_TestSuite('DontSkipInheritedClass');
  $dir = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'Inheritance' . DIRECTORY_SEPARATOR;
  $suite
    ->addTestFile($dir . 'InheritanceA.php');
  $suite
    ->addTestFile($dir . 'InheritanceB.php');
  $result = $suite
    ->run();
  $this
    ->assertEquals(2, count($result));
}