public function test_getRequestPath()
 {
     $actual = "http://" . $GLOBALS['LOGIKS']["_SERVER"]['HTTP_HOST'] . dirname($GLOBALS['LOGIKS']["_SERVER"]['PHP_SELF']) . "/";
     $result = getRequestPath();
     $this->assertEquals($actual, $result);
 }
Example #2
0
 public function __construct()
 {
     $this->currentHttpMethod = getHttpRequestMethod();
     $this->requestPath = getRequestPath();
 }