Skip to content
Snippets Groups Projects
Commit c06cb9a4 authored by Jared Hancock's avatar Jared Hancock
Browse files

test: Fix crash on PHP>7.0 email address test case

parent e3219829
No related branches found
No related tags found
No related merge requests found
......@@ -69,11 +69,11 @@ class Test {
fputs(STDOUT, 'w');
}
function assert($expr, $message) {
function assert($expr, $message=false) {
if ($expr)
$this->pass();
else
$this->fail('', '', $message);
$this->fail('', '', $message ?: 'Test case failed');
}
function assertEqual($a, $b, $message=false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment