Пример #1
0
 protected function getLoadedPaths($path)
 {
     $this->loader->load($path);
     $loaded = $this->getObjectValue($this->loader, 'loadedSuites');
     $paths = array_keys($loaded);
     return $paths;
 }
Пример #2
0
 public function testExecutableTestsForFunctionalModeUse()
 {
     $path = $this->fixture('passing-tests/DependsOnChain.php');
     $loader = new SuiteLoader();
     $loader->load($path);
     $tests = $loader->getTestMethods();
     $this->assertEquals(2, count($tests));
     $testMethod = $tests[0];
     $testMethodName = $this->getObjectValue($testMethod, 'name');
     $this->assertEquals($testMethodName, 'testOneA|testOneBDependsOnA|testOneCDependsOnB');
     $testMethod = $tests[1];
     $testMethodName = $this->getObjectValue($testMethod, 'name');
     $this->assertEquals($testMethodName, 'testTwoA|testTwoBDependsOnA');
 }