public function test_head_routes_get_added() { $router = new Router(); $router->get('foo', 'foo'); $router->head('bar', 'bar'); $route = $router->match(HttpRequestMethod::HEAD, new Url('foo')); $this->assertNotNull($route); $this->assertEquals('foo', $route->getAction()); $route = $router->match(HttpRequestMethod::HEAD, new Url('bar')); $this->assertNotNull($route); $this->assertEquals('bar', $route->getAction()); }