fix(depends): resolve issue with dependency names

This commit is contained in:
Owen Voke
2020-11-09 10:49:57 +00:00
parent b93485c2ed
commit 01143a6f84

View File

@ -95,7 +95,11 @@ final class TestCall
$className = $this->testCaseFactory->getClassName();
$tests = array_map(function (string $test) use ($className): ExecutionOrderDependency {
return ExecutionOrderDependency::createFromDependsAnnotation($className, $test);
if (strpos($test, '::') === false) {
$test = "{$className}::{$test}";
}
return new ExecutionOrderDependency($test, null, '');
}, $tests);
$this->testCaseFactory