public function testIsProtocolRelative() { $url = new Url('http://www.google.fr/'); $this->assertFalse($url->isProtocolRelative()); $url = new Url('//www.google.fr/'); $this->assertTrue($url->isProtocolRelative()); $url = new Url('/path'); $this->assertFalse($url->isProtocolRelative()); $url = new Url('anything'); $this->assertFalse($url->isProtocolRelative()); }