mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
WIP proof of concept fix for multiple file extensions in test suffix
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user