diff options
Diffstat (limited to 'tests/UrlTest.php')
-rw-r--r-- | tests/UrlTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/UrlTest.php b/tests/UrlTest.php index d45f319b..72b9ac4c 100644 --- a/tests/UrlTest.php +++ b/tests/UrlTest.php @@ -36,6 +36,12 @@ class UrlTest extends TestCase } } + public function testIllegalPath() + { + $this->expectException(\UrlException::class); + Url::fromString('https://example.com//foo'); + } + public function testMutation() { $this->assertSame('http://example.com/foo', (Url::fromString('http://example.com/'))->withPath('/foo')->__toString()); |