From a4cd246a72c04db34772ab1f4bfb61c2a26e3d33 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 14 Sep 2009 05:16:15 +0000 Subject: [PATCH] BUGFIX Return FALSE in SapphireTest->assertDOSEquals() if no valid DataObjectSet is passed in git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86217 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/SapphireTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index eac6f8da9..0c680b33d 100644 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -355,6 +355,8 @@ class SapphireTest extends PHPUnit_Framework_TestCase { * ), $members); */ function assertDOSEquals($matches, $dataObjectSet) { + if(!$dataObjectSet) return false; + $extracted = array(); foreach($dataObjectSet as $item) $extracted[] = $item->toMap();