public function testPathIsProperlyEncoded() { $uri = (new Uri())->withPath('/foo^bar'); $expected = '/foo%5Ebar'; $this->assertEquals($expected, $uri->getPath()); }