public function testGetRealURL_httpsの場合_正しくパースできる() { $input = 'https://www.example.jp/aaa/./index.php'; $this->expected = 'https://www.example.jp:/aaa/index.php'; $this->actual = SC_Utils::getRealURL($input); $this->verify(); }
function testGetRealURL_Dotのディレクトリ() { $url = "http://www.example.jp/admin/././../index.php"; $expected = "http://www.example.jp:/index.php"; $actual = SC_Utils::getRealURL($url); $this->assertEquals($expected, $actual); }