mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fix(depends): resolve issue with dependency names
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user