public function testIsRelativePath() { $url = new Url(''); $this->assertTrue($url->isRelativePath()); $url = new Url('http://google.fr'); $this->assertTrue($url->isRelativePath()); $url = new Url('filename.json'); $this->assertTrue($url->isRelativePath()); $url = new Url('folder/filename.json'); $this->assertTrue($url->isRelativePath()); $url = new Url('/filename.json'); $this->assertFalse($url->isRelativePath()); $url = new Url('/folder/filename.json'); $this->assertFalse($url->isRelativePath()); }