Merge branch 'MDL-26029' of git://github.com/timhunt/moodle

This commit is contained in:
Petr Skoda 2011-01-17 20:20:43 +01:00
commit c6947dd878

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 . '].';
}