// fixing type checks

This commit is contained in:
Dimitrios Karvounaris
2020-06-05 19:35:13 +02:00
parent 3640ab0945
commit 40a5d067ec
3 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ final class TestCaseFactory
}, $filename);
}
$filename = realpath($filename);
$filename = (string) realpath($filename);
$rootPath = TestSuite::getInstance()->rootPath;
$relativePath = str_replace($rootPath . DIRECTORY_SEPARATOR, '', $filename);
$relativePath = dirname(ucfirst($relativePath)) . DIRECTORY_SEPARATOR . basename($relativePath, '.php');