Exemple #1
0
 /**
  * Test get scheme
  */
 public function testGetSchemeIfHttps()
 {
     $env = \Slim\Environment::mock(array('slim.url_scheme' => 'https'));
     $req = new \Slim\Http\Request($env);
     $this->assertEquals('https', $req->getScheme());
 }