Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function testXpathPhpFunctionsShouldBeDisableByDefault()
try {
$this->query->queryXpath('//meta[php:functionString("strtolower", @http-equiv) = "content-type"]');
} catch (\Exception $e) {
return ;
return;
}
$this->assertFails('XPath PHPFunctions should be disable by default');
}
Expand All @@ -218,7 +218,7 @@ public function testXpathPhpFunctionsShouldBeNotCalledWhenSpecifiedFunction()
$this->query->queryXpath('//meta[php:functionString("strtolower", @http-equiv) = "content-type"]');
} catch (\Exception $e) {
// $e->getMessage() - Not allowed to call handler 'strtolower()
return ;
return;
}
$this->assertFails('Not allowed to call handler strtolower()');
}
Expand Down

0 comments on commit 80fc529

Please # to comment.