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