/** * @covers ../../../src/Library/Helper/Url::resolveHttp() * @covers ../../../src/Library/Helper/Url::resolvePath() */ public function testResolvers() { $this->checkNoArg('resolveHttp'); $url = 'domain.com/index.php?param=A¶m1=test1¶m2=test2'; $this->assertEquals('http://' . $url, \Library\Helper\Url::resolveHttp($url)); $this->assertEquals('http://' . $url, \Library\Helper\Url::resolveHttp('http://' . $url)); $this->checkNoArg('resolvePath'); $path = 'my/path/../to/./a/file'; $realpath = 'my/to/a/file'; $this->assertEquals($realpath, \Library\Helper\Url::resolvePath($path)); }