@@ -798,9 +798,18 @@ public function testGetQueryWithStrings()
798798 */
799799 public function testNoExtraSlashes ()
800800 {
801- $ this ->assertSame ('http://entirely.different.com/subfolder ' , (string ) (new URI ('entirely.different.com/subfolder ' )));
802- $ this ->assertSame ('http://localhost/subfolder ' , (string ) (new URI ('localhost/subfolder ' )));
803- $ this ->assertSame ('http://localtest.me/subfolder ' , (string ) (new URI ('localtest.me/subfolder ' )));
801+ $ this ->assertSame (
802+ 'http://entirely.different.com/subfolder ' ,
803+ (string ) (new URI ('entirely.different.com/subfolder ' ))
804+ );
805+ $ this ->assertSame (
806+ 'http://localhost/subfolder ' ,
807+ (string ) (new URI ('localhost/subfolder ' ))
808+ );
809+ $ this ->assertSame (
810+ 'http://localtest.me/subfolder ' ,
811+ (string ) (new URI ('localtest.me/subfolder ' ))
812+ );
804813 }
805814
806815 public function testSetSegment ()
@@ -880,7 +889,10 @@ public function testBasedNoIndex()
880889 Services::injectMock ('request ' , $ request );
881890
882891 // going through request
883- $ this ->assertSame ('http://example.com/ci/v4/controller/method ' , (string ) $ request ->getUri ());
892+ $ this ->assertSame (
893+ 'http://example.com/ci/v4/controller/method ' ,
894+ (string ) $ request ->getUri ()
895+ );
884896 $ this ->assertSame ('ci/v4/controller/method ' , $ request ->getUri ()->getPath ());
885897
886898 // standalone
@@ -907,12 +919,21 @@ public function testBasedWithIndex()
907919 Services::injectMock ('request ' , $ request );
908920
909921 // going through request
910- $ this ->assertSame ('http://example.com/ci/v4/index.php/controller/method ' , (string ) $ request ->getUri ());
911- $ this ->assertSame ('ci/v4/index.php/controller/method ' , $ request ->getUri ()->getPath ());
922+ $ this ->assertSame (
923+ 'http://example.com/ci/v4/index.php/controller/method ' ,
924+ (string ) $ request ->getUri ()
925+ );
926+ $ this ->assertSame (
927+ 'ci/v4/index.php/controller/method ' ,
928+ $ request ->getUri ()->getPath ()
929+ );
912930
913931 // standalone
914932 $ uri = new URI ('http://example.com/ci/v4/index.php/controller/method ' );
915- $ this ->assertSame ('http://example.com/ci/v4/index.php/controller/method ' , (string ) $ uri );
933+ $ this ->assertSame (
934+ 'http://example.com/ci/v4/index.php/controller/method ' ,
935+ (string ) $ uri
936+ );
916937 $ this ->assertSame ('/ci/v4/index.php/controller/method ' , $ uri ->getPath ());
917938
918939 $ this ->assertSame ($ uri ->getPath (), '/ ' . $ request ->getUri ()->getPath ());
@@ -938,13 +959,19 @@ public function testForceGlobalSecureRequests()
938959 Services::injectMock ('request ' , $ request );
939960
940961 // Detected by request
941- $ this ->assertSame ('https://example.com/ci/v4/controller/method ' , (string ) $ request ->getUri ());
962+ $ this ->assertSame (
963+ 'https://example.com/ci/v4/controller/method ' ,
964+ (string ) $ request ->getUri ()
965+ );
942966
943967 // Standalone
944968 $ uri = new URI ('http://example.com/ci/v4/controller/method ' );
945969 $ this ->assertSame ('https://example.com/ci/v4/controller/method ' , (string ) $ uri );
946970
947- $ this ->assertSame (trim ($ uri ->getPath (), '/ ' ), trim ($ request ->getUri ()->getPath (), '/ ' ));
971+ $ this ->assertSame (
972+ trim ($ uri ->getPath (), '/ ' ),
973+ trim ($ request ->getUri ()->getPath (), '/ ' )
974+ );
948975 }
949976
950977 public function testZeroAsURIPath ()
0 commit comments