simpletestlib: improve failure message from CheckSpecifiedFieldsExpectation

This commit is contained in:
tjhunt 2009-04-10 09:32:53 +00:00
parent 7e3a668c07
commit 3efb762e6b

View File

@ -142,7 +142,7 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
} else if (is_null($value) && is_null($actual->$key)) {
// OK
} else {
$mismatches[] = $key;
$mismatches[] = $key . ' (expected [' . $value . '] got [' . $actual->$key . '].';
}
}
return 'Actual object does not have all the same fields with the same values as the expected object (' .