1
0
mirror of https://github.com/dannyvankooten/AltoRouter.git synced 2025-08-24 09:02:47 +02:00

fix phpunit on older php versions

This commit is contained in:
Danny van Kooten
2019-02-07 09:52:34 +01:00
parent ecb5f69042
commit dce6efdea2
3 changed files with 5 additions and 4 deletions

View File

@@ -73,7 +73,8 @@ class AltoRouterTest extends PHPUnit\Framework\TestCase
$route = '/[:controller]/[:action]';
$target = function(){};
$this->assertIsArray($this->router->getRoutes());
$this->assertInternalType('array', $this->router->getRoutes());
// $this->assertIsArray($this->router->getRoutes()); // for phpunit 7.x
$this->router->map($method, $route, $target);
$this->assertEquals(array(array($method, $route, $target, null)), $this->router->getRoutes());
}