mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Add tests for Router::getURL() and Router::parseURL()
This commit is contained in:
parent
60247f7d53
commit
1bb7248e3e
3 changed files with 67 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue