Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

unit tests MDL-26029 fix notices from CheckSpecifiedFieldsExpectation.

  • Loading branch information...
commit 897fee6b6f1ced521bbe09a20631d8c6c26f322a 1 parent 5a7f931
@timhunt timhunt authored
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 . '].';
}
Please sign in to comment.
Something went wrong with that request. Please try again.