File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public function testSegmentsIsPopulatedRightForMultipleSegments()
4949 $ this ->assertEquals ('path ' , $ uri ->getSegment (1 ));
5050 $ this ->assertEquals ('to ' , $ uri ->getSegment (2 ));
5151 $ this ->assertEquals ('script ' , $ uri ->getSegment (3 ));
52+ $ this ->assertEquals ('' , $ uri ->getSegment (4 ));
5253
5354 $ this ->assertEquals (3 , $ uri ->getTotalSegments ());
5455 }
@@ -58,9 +59,8 @@ public function testSegmentsIsPopulatedRightForMultipleSegments()
5859 public function testSegmentOutOfRange ()
5960 {
6061 $ this ->expectException (HTTPException::class);
61- $ url = 'http://abc.com/a123/b/c ' ;
62- $ uri = new URI ($ url );
63- $ uri ->getSegment (22 );
62+ $ uri = new URI ('http://hostname/path/to/script ' );
63+ $ uri ->getSegment (5 );
6464 }
6565
6666 //--------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments