Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Loosen exception types.

  • Loading branch information...
commit fb92bde0fef83eefc18510bcfce75d231fcf7585 1 parent 22d4cb3
@markstory markstory authored
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');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.