@@ -876,14 +876,14 @@ public function testBasedNoIndex()
876876
877877 // going through request
878878 $ this ->assertSame ('http://example.com/ci/v4/controller/method ' , (string ) $ request ->uri );
879- $ this ->assertSame ('/ci/v4/controller/method ' , $ request ->uri ->getPath ());
879+ $ this ->assertSame ('/ci/v4/controller/method ' , $ request ->getUri () ->getPath ());
880880
881881 // standalone
882882 $ uri = new URI ('http://example.com/ci/v4/controller/method ' );
883883 $ this ->assertSame ('http://example.com/ci/v4/controller/method ' , (string ) $ uri );
884884 $ this ->assertSame ('/ci/v4/controller/method ' , $ uri ->getPath ());
885885
886- $ this ->assertSame ($ uri ->getPath (), $ request ->uri ->getPath ());
886+ $ this ->assertSame ($ uri ->getPath (), $ request ->getUri () ->getPath ());
887887 }
888888
889889 public function testBasedWithIndex ()
@@ -902,15 +902,15 @@ public function testBasedWithIndex()
902902 Services::injectMock ('request ' , $ request );
903903
904904 // going through request
905- $ this ->assertSame ('http://example.com/ci/v4/index.php/controller/method ' , (string ) $ request ->uri );
906- $ this ->assertSame ('/ci/v4/index.php/controller/method ' , $ request ->uri ->getPath ());
905+ $ this ->assertSame ('http://example.com/ci/v4/index.php/controller/method ' , (string ) $ request ->getUri () );
906+ $ this ->assertSame ('/ci/v4/index.php/controller/method ' , $ request ->getUri () ->getPath ());
907907
908908 // standalone
909909 $ uri = new URI ('http://example.com/ci/v4/index.php/controller/method ' );
910910 $ this ->assertSame ('http://example.com/ci/v4/index.php/controller/method ' , (string ) $ uri );
911911 $ this ->assertSame ('/ci/v4/index.php/controller/method ' , $ uri ->getPath ());
912912
913- $ this ->assertSame ($ uri ->getPath (), $ request ->uri ->getPath ());
913+ $ this ->assertSame ($ uri ->getPath (), $ request ->getUri () ->getPath ());
914914 }
915915
916916 public function testForceGlobalSecureRequests ()
@@ -933,13 +933,13 @@ public function testForceGlobalSecureRequests()
933933 Services::injectMock ('request ' , $ request );
934934
935935 // Detected by request
936- $ this ->assertSame ('https://example.com/ci/v4/controller/method ' , (string ) $ request ->uri );
936+ $ this ->assertSame ('https://example.com/ci/v4/controller/method ' , (string ) $ request ->getUri () );
937937
938938 // Standalone
939939 $ uri = new URI ('http://example.com/ci/v4/controller/method ' );
940940 $ this ->assertSame ('https://example.com/ci/v4/controller/method ' , (string ) $ uri );
941941
942- $ this ->assertSame (trim ($ uri ->getPath (), '/ ' ), trim ($ request ->uri ->getPath (), '/ ' ));
942+ $ this ->assertSame (trim ($ uri ->getPath (), '/ ' ), trim ($ request ->getUri () ->getPath (), '/ ' ));
943943 }
944944
945945 public function testZeroAsURIPath ()
0 commit comments