Skip to content
Browse files

Loosen exception types.

  • Loading branch information...
1 parent 22d4cb3 commit fb92bde0fef83eefc18510bcfce75d231fcf7585 @markstory markstory committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Test/Case/Utility/XmlTest.php
View
2 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');
}
}

0 comments on commit fb92bde

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