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
Branches
Tags
No related merge requests found
...@@ -69,11 +69,11 @@ class Test { ...@@ -69,11 +69,11 @@ class Test {
fputs(STDOUT, 'w'); fputs(STDOUT, 'w');
} }
function assert($expr, $message) { function assert($expr, $message=false) {
if ($expr) if ($expr)
$this->pass(); $this->pass();
else else
$this->fail('', '', $message); $this->fail('', '', $message ?: 'Test case failed');
} }
function assertEqual($a, $b, $message=false) { 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