From 3efb762e6b108c1f9686cfa811653367d6ef3410 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 10 Apr 2009 09:32:53 +0000 Subject: [PATCH] simpletestlib: improve failure message from CheckSpecifiedFieldsExpectation --- lib/simpletestlib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simpletestlib.php b/lib/simpletestlib.php index 885eaad867..2eb6b754ac 100644 --- a/lib/simpletestlib.php +++ b/lib/simpletestlib.php @@ -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 (' . -- 2.39.5