public function testBugFix() { $uri = new Uri('abcd.com'); $this->assertEquals('http://abcd.com', $uri->withScheme('http')->__toString()); $uri = new Uri('abcd.com/abc/def'); $this->assertEquals('http://abcd.com/abc/def', $uri->withScheme('http')->__toString()); }