MDL-20636 unit tests MDL-26029 fix notices from CheckSpecifie

dFieldsExpectation.
This commit is contained in:
Tim Hunt
2011-01-17 16:30:09 +00:00
parent 04bbc70631
commit c32256af45
+2
View File
@@ -180,6 +180,8 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
// OK
} else if (is_null($value) && is_null($actual->$key)) {
// OK
} else if (!isset($actual->$key)) {
$mismatches[] = $key . ' (expected [' . $value . '] but was missing.';
} else {
$mismatches[] = $key . ' (expected [' . $value . '] got [' . $actual->$key . '].';
}