for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FaviconFinder\Tests;
use FaviconFinder\IconFinder;
class IconFinderTest extends \PHPUnit_Framework_TestCase {
/**
* @test
*/
public function itShouldReturnTrueIfFaviconExist()
{
$iconFinder = new IconFinder();
$isFaviconAvailable = $iconFinder->isFaviconAvailable("http://packagist.com/");
$this->assertTrue($isFaviconAvailable);
}
public function itShouldReturnFalseIfFaviconNotExist()
$isFaviconAvailable = $iconFinder->isFaviconAvailable("http://notavaliddomain.test");
$this->assertFalse($isFaviconAvailable);