Beispiel #1
0
 public function testPathUtils()
 {
     $requestParams = array('PATH_INFO' => "/", 'REQUEST_METHOD' => "GET");
     Environment::mock($requestParams);
     $this->assertEquals(APP_ROOT . "/build/logs/", TigerApp::LogRoot());
     $this->assertEquals(APP_ROOT . "/templates/", TigerApp::TemplatesRoot());
     // $this->assertEquals(APP_ROOT . "/templates", TigerApp::WebDiskRoot());
     $this->assertEquals(APP_ROOT . "/public/", TigerApp::PublicRoot());
     $this->assertEquals(APP_ROOT . "/public/cache/", TigerApp::PublicCacheRoot());
     $this->assertEquals("localhost", TigerApp::WebHost());
     $this->assertEquals(80, TigerApp::WebPort());
     $this->assertEquals(false, TigerApp::WebIsSSL());
 }