1
0
mirror of synced 2025-01-29 19:41:45 +03:00

fixed diffing of arrays if an assert_equals fails

This commit is contained in:
meus 2007-11-03 14:26:23 +00:00
parent c6f53114a3
commit 7d6185873d

View File

@ -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);
}