MDL-20636 unit tests MDL-26029 fix notices from CheckSpecifie
dFieldsExpectation.
This commit is contained in:
@@ -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 . '].';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user