Skip to content

Commit

Permalink
Dev: Better error message at failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 28, 2017
1 parent b774919 commit 887b2f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/helpers/ExpressionCoreAux.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ public function compareExpression()
$emResult,
$nodeOutput[0],
sprintf(
'JS (%s) and PHP (%s) must return same result. Expression: ' . $this->expression,
'JS (%s) and PHP (%s) must return same result. Expression: %s, value: %s',
$nodeOutput[0],
$emResult
$emResult,
$this->expression,
json_encode($this->value)
)
);
}
Expand Down

0 comments on commit 887b2f2

Please sign in to comment.