Merge branch '2.x' into to_be_uuid

This commit is contained in:
Nuno Maduro
2023-09-06 11:53:58 +01:00
committed by GitHub
8 changed files with 38 additions and 9 deletions

View File

@ -951,7 +951,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;