From fb92bde0fef83eefc18510bcfce75d231fcf7585 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 14 Jul 2012 16:18:21 -0400 Subject: [PATCH] Loosen exception types. --- lib/Cake/Test/Case/Utility/XmlTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index 20067b5299b..7108d75a791 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -1056,7 +1056,7 @@ public function testNoEntityLoading() { try { $result = Xml::build($xml); $this->assertEquals('', (string)$result->xxe); - } catch (PHPUnit_Framework_Error_Warning $e) { + } catch (Exception $e) { $this->assertTrue(true, 'A warning was raised meaning external entities were not loaded'); } }