Merge pull request #10590 from wilr/4
This commit is contained in:
commit
f05cc1fcd6
|
@ -215,9 +215,10 @@ class FixtureTestState implements TestState
|
||||||
*/
|
*/
|
||||||
protected function getTestAbsolutePath(SapphireTest $test)
|
protected function getTestAbsolutePath(SapphireTest $test)
|
||||||
{
|
{
|
||||||
$filename = ClassLoader::inst()->getItemPath(get_class($test));
|
$class = get_class($test);
|
||||||
|
$filename = ClassLoader::inst()->getItemPath($class);
|
||||||
if (!$filename) {
|
if (!$filename) {
|
||||||
throw new LogicException('getItemPath returned null for ' . static::class
|
throw new LogicException('getItemPath returned null for ' . $class
|
||||||
. '. Try adding flush=1 to the test run.');
|
. '. Try adding flush=1 to the test run.');
|
||||||
}
|
}
|
||||||
return dirname($filename ?? '');
|
return dirname($filename ?? '');
|
||||||
|
|
Loading…
Reference in New Issue