Example #1
0
 public function test_get_and_set_routes()
 {
     $router = new Router();
     $routes = [];
     $router->setRoutes($routes);
     $this->assertTrue($routes === $router->getRoutes());
     $router = new Router();
     $this->assertTrue(is_array($router->getRoutes()));
 }