assertEquals($expected, $actual); } function testGetRealURL_変換有() { $url = "http://www.example.jp/admin/../index.php"; $expected = "http://www.example.jp/index.php"; $actual = SC_Utils::getRealURL($url); $this->assertEquals($expected, $actual); } function testGetRealURL_空のディレクトリ() { $url = "http://www.example.jp/admin/..///index.php"; $expected = "http://www.example.jp/index.php"; $actual = SC_Utils::getRealURL($url); $this->assertEquals($expected, $actual); } 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); } } ?>