public function testWithPath() { $uri1 = new Uri(); $uri2 = $uri1->withPath('/items/1'); $this->assertEquals('/items/1', $uri2->getPath()); }