Skip to content

Commit f0aff6d

Browse files
authored
Fix message for catching wrong exception in raises()
The original implementation of raises() in c6a793d apparently referenced an undeclared $exceptionname variable several times. That was later addressed 804f383 but that commit neglected to fix this reference.
1 parent 88dcfce commit f0aff6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ function raises($function, $type, $infunction = null) {
607607
}
608608
printf("OK: Got %s\n", severityToString($e->getSeverity()));
609609
} else {
610-
printf("ALMOST: Got %s - expected %s\n", get_class($e), $exceptionname);
610+
printf("ALMOST: Got %s - expected %s\n", get_class($e), ErrorException::class);
611611
}
612612
restore_error_handler();
613613
return $e->getMessage();

0 commit comments

Comments
 (0)