Commit 7d618587 authored by meus's avatar meus

fixed diffing of arrays if an assert_equals fails

parent c6f53114
......@@ -16,6 +16,12 @@ class UnitTestCase
if(PHP_SAPI === "cli"){
$seperator = "\n";
}
if(is_array($value)){
$value = var_export($value, true);
}
if(is_array($value2)){
$value2 = var_export($value2, true);
}
$message = "$seperator Value1: $value $seperator != $seperator Value2: $value2 $seperator";
$this->_fail($message);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment