/** * UtilityTest::testUrlExists() * * @covers ::urlExists * @return void */ public function testUrlExists() { $res = Utility::urlExists('http://www.spiegel.de'); $this->assertTrue($res); $res = Utility::urlExists('http://www.spiegel.de/some/inexistent.img'); $this->assertFalse($res); }