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