itShouldCheckStatusAndReturnFalseIfFaviconNotExist()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace FaviconFinder\Tests\src\Services;
4
5
use FaviconFinder\src\Services\FaviconHelper;
6
7
class FaviconHelperTest extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * @test
11
     */
12
    public function itShouldCheckStatusAndReturnTrueIfFaviconExist()
13
    {
14
        $isFaviconAvailable = FaviconHelper::check("http://packagist.com/");
15
        
16
        $this->assertTrue($isFaviconAvailable);
17
    }
18
    
19
    /**
20
     * @test
21
     */
22
    public function itShouldCheckStatusAndReturnFalseIfFaviconNotExist()
23
    {        
24
        $isFaviconAvailable = FaviconHelper::check("http://notavaliddomain.test");
25
        
26
        $this->assertFalse($isFaviconAvailable);
27
    }
28
29
}
30