public function testExecutableTestsForFunctionalModeUse() { $path = FIXTURES . DS . 'tests' . DS . 'DependsOnChain.php'; $this->loader->load($path); $tests = $this->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'); }
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'); }