mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
finishing the code
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user