Skip to content
This repository
Browse code

Loosen exception types.

  • Loading branch information...
commit fb92bde0fef83eefc18510bcfce75d231fcf7585 1 parent 22d4cb3
Mark Story authored July 14, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/Cake/Test/Case/Utility/XmlTest.php
2  lib/Cake/Test/Case/Utility/XmlTest.php
@@ -1056,7 +1056,7 @@ public function testNoEntityLoading() {
1056 1056
 		try {
1057 1057
 			$result = Xml::build($xml);
1058 1058
 			$this->assertEquals('', (string)$result->xxe);
1059  
-		} catch (PHPUnit_Framework_Error_Warning $e) {
  1059
+		} catch (Exception $e) {
1060 1060
 			$this->assertTrue(true, 'A warning was raised meaning external entities were not loaded');
1061 1061
 		}
1062 1062
 	}

0 notes on commit fb92bde

Please sign in to comment.
Something went wrong with that request. Please try again.