public function testPathIsNotPrefixedWithSlashIfSetWithoutOne() { $uri = new Uri('http://example.com'); $new = $uri->withPath('foo/bar'); $this->assertEquals('foo/bar', $new->getPath()); }