mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
simpletestlib: improve failure message from CheckSpecifiedFieldsExpectation
This commit is contained in:
parent
7e3a668c07
commit
3efb762e6b
@ -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 (' .
|
||||
|
Loading…
x
Reference in New Issue
Block a user