@@ -437,12 +437,12 @@ public function testItStripMultipleLeadingSlashOnGetPath(): void
437437 $ uri = Uri::new ('https://example.com///miscillaneous.tld ' );
438438
439439 self ::assertSame ('https://example.com///miscillaneous.tld ' , (string ) $ uri );
440- self ::assertSame ('/miscillaneous.tld ' , $ uri ->getPath ());
440+ self ::assertSame ('/// miscillaneous.tld ' , $ uri ->getPath ());
441441
442442 $ modifiedUri = $ uri ->withPath ('///foobar ' );
443443
444444 self ::assertSame ('https://example.com///foobar ' , (string ) $ modifiedUri );
445- self ::assertSame ('/foobar ' , $ modifiedUri ->getPath ());
445+ self ::assertSame ('/// foobar ' , $ modifiedUri ->getPath ());
446446 self ::assertSame ('//example.com///foobar ' , (string ) $ modifiedUri ->withScheme (null ));
447447
448448 $ this ->expectException (SyntaxError::class);
@@ -453,15 +453,15 @@ public function testItPreservesMultipleLeadingSlashesOnMutation(): void
453453 {
454454 $ uri = Uri::new ('https://www.example.com///google.com ' );
455455 self ::assertSame ('https://www.example.com///google.com ' , (string ) $ uri );
456- self ::assertSame ('/google.com ' , $ uri ->getPath ());
456+ self ::assertSame ('/// google.com ' , $ uri ->getPath ());
457457
458458 $ modifiedUri = $ uri ->withPath ('/google.com ' );
459459 self ::assertSame ('https://www.example.com/google.com ' , (string ) $ modifiedUri );
460460 self ::assertSame ('/google.com ' , $ modifiedUri ->getPath ());
461461
462462 $ modifiedUri2 = $ uri ->withPath ('///google.com ' );
463463 self ::assertSame ('https://www.example.com///google.com ' , (string ) $ modifiedUri2 );
464- self ::assertSame ('/google.com ' , $ modifiedUri2 ->getPath ());
464+ self ::assertSame ('/// google.com ' , $ modifiedUri2 ->getPath ());
465465 }
466466
467467 public function testItCanBeUpdatedWithAnUriComponent (): void
0 commit comments