Skip to content

Commit

Permalink
Loosen exception types.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 14, 2012
1 parent 22d4cb3 commit fb92bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/XmlTest.php
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit fb92bde

Please sign in to comment.