Add tests for Router::getURL() and Router::parseURL()

This commit is contained in:
Kijin Sung 2020-06-22 00:52:51 +09:00
parent 60247f7d53
commit 1bb7248e3e
3 changed files with 67 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class ModuleActionParser
public static function loadXML(string $filename)
{
// Load the XML file.
$xml = simplexml_load_file($filename);
$xml = simplexml_load_string(file_get_contents($filename));
if ($xml === false)
{
return false;

View file

@ -16,7 +16,7 @@ class ModuleInfoParser
public static function loadXML(string $filename)
{
// Load the XML file.
$xml = simplexml_load_file($filename);
$xml = simplexml_load_string(file_get_contents($filename));
if ($xml === false)
{
return false;