mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 10:47:25 +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();
|
$className = $this->testCaseFactory->getClassName();
|
||||||
|
|
||||||
$tests = array_map(function (string $test) use ($className): ExecutionOrderDependency {
|
$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);
|
}, $tests);
|
||||||
|
|
||||||
$this->testCaseFactory
|
$this->testCaseFactory
|
||||||
|
|||||||
Reference in New Issue
Block a user