fix: overrides being used on regular phpunit

This commit is contained in:
Nuno Maduro
2022-12-28 14:21:07 +00:00
parent 37b1367d25
commit 406fcf72ae
5 changed files with 45 additions and 11 deletions

View File

@ -95,7 +95,7 @@ final class TestSuite
return self::$instance;
}
if (self::$instance === null) {
if (! self::$instance instanceof self) {
throw new InvalidPestCommand();
}