Esempio n. 1
0
 /**
  * @covers Smrtr\HaltoRouter::map
  */
 public function testMapWithHostgroup()
 {
     $method = 'GET|POST';
     $route = '/[:controller]/[:action]';
     $target = function () {
     };
     $hostGroup = 'example website';
     $this->router->map($method, $route, $target, null, $hostGroup);
     $routes = $this->router->getRoutes();
     $this->assertSame(array($method, $route, $target, null, $hostGroup), $routes[0]);
 }