- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/tests/class/util/SC_Utils/SC_Utils_getRealURLTest.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class SC_Utils_getRealURLTest extends Common_TestCase 35 { 34 class SC_Utils_getRealURLTest extends Common_TestCase { 36 35 37 36 38 protected function setUp() 39 { 37 protected function setUp() { 40 38 parent::setUp(); 41 39 } 42 40 43 protected function tearDown() 44 { 41 protected function tearDown() { 45 42 parent::tearDown(); 46 43 } … … 48 45 ///////////////////////////////////////// 49 46 // TODO ポート番号のためのコロンが必ず入ってしまうのはOK? 50 public function testGetRealURL_親ディレクトリへの参照を含む場合_正しくパースできる() 51 { 47 public function testGetRealURL_親ディレクトリへの参照を含む場合_正しくパースできる() { 52 48 $input = 'http://www.example.jp/aaa/../index.php'; 53 49 $this->expected = 'http://www.example.jp:/index.php'; … … 57 53 } 58 54 59 public function testGetRealURL_親ディレクトリへの参照を複数回含む場合_正しくパースできる() 60 { 55 public function testGetRealURL_親ディレクトリへの参照を複数回含む場合_正しくパースできる() { 61 56 $input = 'http://www.example.jp/aaa/bbb/../../ccc/ddd/../index.php'; 62 57 $this->expected = 'http://www.example.jp:/ccc/index.php'; … … 66 61 } 67 62 68 public function testGetRealURL_カレントディレクトリへの参照を含む場合_正しくパースできる() 69 { 63 public function testGetRealURL_カレントディレクトリへの参照を含む場合_正しくパースできる() { 70 64 $input = 'http://www.example.jp/aaa/./index.php'; 71 65 $this->expected = 'http://www.example.jp:/aaa/index.php'; … … 75 69 } 76 70 77 public function testGetRealURL_httpsの場合_正しくパースできる() 78 { 71 public function testGetRealURL_httpsの場合_正しくパースできる() { 79 72 $input = 'https://www.example.jp/aaa/./index.php'; 80 73 $this->expected = 'https://www.example.jp:/aaa/index.php';
Note: See TracChangeset
for help on using the changeset viewer.