Browse Source

Loosen exception types.

mark_story 13 years ago
parent
commit
fb92bde0fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Test/Case/Utility/XmlTest.php

+ 1 - 1
lib/Cake/Test/Case/Utility/XmlTest.php

@@ -1056,7 +1056,7 @@ XML;
 		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');
 		}
 	}