From 01143a6f84e730b4017657e4b2985e68969cddbc Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Mon, 9 Nov 2020 10:49:57 +0000 Subject: [PATCH] fix(depends): resolve issue with dependency names --- src/PendingObjects/TestCall.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PendingObjects/TestCall.php b/src/PendingObjects/TestCall.php index 34aae3fc..73f30548 100644 --- a/src/PendingObjects/TestCall.php +++ b/src/PendingObjects/TestCall.php @@ -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