Skip to content
Browse files

unit tests MDL-26029 fix notices from CheckSpecifiedFieldsExpectation.

  • Loading branch information...
1 parent 5a7f931 commit 897fee6b6f1ced521bbe09a20631d8c6c26f322a @timhunt timhunt committed Jan 17, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/simpletestlib.php
View
2 lib/simpletestlib.php
@@ -180,6 +180,8 @@ function testMessage($actual) {
// 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 . '].';
}

0 comments on commit 897fee6

Please sign in to comment.
Something went wrong with that request. Please try again.