From 20077c285a87c42e74736844d68c70902783ae0e Mon Sep 17 00:00:00 2001 From: jordanbrauer <18744334+jordanbrauer@users.noreply.github.com> Date: Sat, 13 Feb 2021 00:14:20 -0600 Subject: [PATCH] WIP proof of concept fix for multiple file extensions in test suffix --- src/Factories/TestCaseFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index f3fdf031..714a7cdc 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -179,7 +179,7 @@ final class TestCaseFactory // Limit to A-Z, a-z, 0-9, '_', '-'. $relativePath = (string) preg_replace('/[^A-Za-z0-9.\\\]/', '', $relativePath); - $classFQN = 'P\\' . $relativePath; + $classFQN = str_replace('.', '', 'P\\' . $relativePath) if (class_exists($classFQN)) { return $classFQN; }