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