public function testHttpAndHttps() { $route = new Route('GET', '/test', ['http']); $this->assertTrue($route->isHttpOnly()); $route = new Route('GET', '/test', ['https']); $this->assertTrue($route->isHttpsOnly()); }