finishing the code

This commit is contained in:
AJ Meireles
2023-09-05 20:36:18 -03:00
parent cc6c5bf199
commit 3927177b23
8 changed files with 38 additions and 9 deletions

View File

@ -950,7 +950,7 @@ final class Expectation
}
if (! class_exists($exception)) {
if ($e instanceof Error && $e->getMessage() === "Class \"$exception\" not found") {
if ($e instanceof Error && "Class \"$exception\" not found" === $e->getMessage()) {
Assert::assertTrue(true);
throw $e;