public function head($route, $action) { $this->router->addRoute('HEAD', $route, $action); }
public function testHead() { $this->app->head('/test-head', 'test-handler'); $this->assertEquals(['method' => 'HEAD', 'route' => '/test-head', 'handler' => 'test-handler'], $this->app->getRouter()->getRoutingTable()[0]); }