예제 #1
0
 public function testScheme()
 {
     $route = new Route("/");
     $this->assertEquals("", $route->getScheme());
     $route->setScheme("http");
     $this->assertEquals("http", $route->getScheme());
     $route->setScheme(null);
     $this->assertEquals("", $route->getScheme());
     $route->setScheme("https");
     $this->assertEquals("https", $route->getScheme());
     $route->setScheme("");
     $this->assertEquals("", $route->getScheme());
 }