Added RouterGroupTest unit-tests.

This commit is contained in:
Simon Sessingø
2017-09-03 16:49:15 +01:00
parent 3a90578351
commit 7f924c7d0a
4 changed files with 35 additions and 4 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ abstract class Route implements IRoute
$callback = $this->getCallback();
if ($callback === null) {
return;
return null;
}
/* Render callback function */
@@ -162,7 +162,7 @@ abstract class Route implements IRoute
if (isset($parameters[1]) === true) {
/* Only take matched parameters with name */
foreach ($parameters[1] as $name) {
foreach ((array)$parameters[1] as $name) {
$values[$name] = (isset($matches[$name]) && $matches[$name] !== '') ? $matches[$name] : null;
}
}