/**
  * @group online
  */
 public function testExists()
 {
     $favicon = new Favicon();
     $this->assertTrue($favicon->exists('https://miniflux.net/favicon.ico'));
     $this->assertFalse($favicon->exists('http://minicoders.com/favicon.ico'));
     $this->assertFalse($favicon->exists('http://blabla'));
     $this->assertFalse($favicon->exists(''));
 }
Example #2
0
    public function testExists()
    {
        $favicon = new Favicon;

        $this->assertTrue($favicon->exists('https://en.wikipedia.org/favicon.ico'));
        $this->assertFalse($favicon->exists('http://minicoders.com/favicon.ico'));
        $this->assertFalse($favicon->exists('http://blabla'));
        $this->assertFalse($favicon->exists(''));
    }