Skip to content

Commit d368c62

Browse files
authored
Add test for URI with multiple slashes (#49)
1 parent 4c39736 commit d368c62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/UriIntegrationTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,14 @@ public function testUriModification2()
226226
$this->assertInstanceOf(UriInterface::class, $uri);
227227
$this->assertSame($expected, (string) $uri);
228228
}
229+
230+
public function testPathWithMultipleSlashes()
231+
{
232+
$expected = 'http://example.org//valid///path';
233+
$uri = $this->createUri($expected);
234+
235+
$this->assertInstanceOf(UriInterface::class, $uri);
236+
$this->assertSame($expected, (string) $uri);
237+
$this->assertSame('//valid///path', $uri->getPath());
238+
}
229239
}

0 commit comments

Comments
 (0)