@@ -163,7 +163,7 @@ public function testCurrentURLWithPortInSubfolder()
163163 $ this ->assertSame (8080 , $ uri ->getPort ());
164164 }
165165
166- public function testUriStringAbsolute ()
166+ public function testUriString ()
167167 {
168168 $ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
169169 $ _SERVER ['REQUEST_URI ' ] = '/assets/image.jpg ' ;
@@ -183,18 +183,7 @@ private function setService(string $uri): void
183183 Services::injectMock ('request ' , $ request );
184184 }
185185
186- public function testUriStringRelative ()
187- {
188- $ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
189- $ _SERVER ['REQUEST_URI ' ] = '/assets/image.jpg ' ;
190-
191- $ uri = 'http://example.com/assets/image.jpg ' ;
192- $ this ->setService ($ uri );
193-
194- $ this ->assertSame ('assets/image.jpg ' , uri_string (true ));
195- }
196-
197- public function testUriStringNoTrailingSlashAbsolute ()
186+ public function testUriStringNoTrailingSlash ()
198187 {
199188 $ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
200189 $ _SERVER ['REQUEST_URI ' ] = '/assets/image.jpg ' ;
@@ -207,33 +196,12 @@ public function testUriStringNoTrailingSlashAbsolute()
207196 $ this ->assertSame ('assets/image.jpg ' , uri_string ());
208197 }
209198
210- public function testUriStringNoTrailingSlashRelative ()
211- {
212- $ _SERVER ['HTTP_HOST ' ] = 'example.com ' ;
213- $ _SERVER ['REQUEST_URI ' ] = '/assets/image.jpg ' ;
214-
215- $ this ->config ->baseURL = 'http://example.com ' ;
216-
217- $ uri = 'http://example.com/assets/image.jpg ' ;
218- $ this ->setService ($ uri );
219-
220- $ this ->assertSame ('assets/image.jpg ' , uri_string (true ));
221- }
222-
223- public function testUriStringEmptyAbsolute ()
199+ public function testUriStringEmpty ()
224200 {
225201 $ uri = 'http://example.com/ ' ;
226202 $ this ->setService ($ uri );
227203
228- $ this ->assertSame ('/ ' , uri_string ());
229- }
230-
231- public function testUriStringEmptyRelative ()
232- {
233- $ uri = 'http://example.com/ ' ;
234- $ this ->setService ($ uri );
235-
236- $ this ->assertSame ('' , uri_string (true ));
204+ $ this ->assertSame ('' , uri_string ());
237205 }
238206
239207 public function testUriStringSubfolderAbsolute ()
@@ -260,7 +228,7 @@ public function testUriStringSubfolderRelative()
260228 $ uri = 'http://example.com/subfolder/assets/image.jpg ' ;
261229 $ this ->setService ($ uri );
262230
263- $ this ->assertSame ('assets/image.jpg ' , uri_string (true ));
231+ $ this ->assertSame ('assets/image.jpg ' , uri_string ());
264232 }
265233
266234 public function urlIsProvider ()
0 commit comments