Completed
Push — master ( 67e465...aa77c9 )
by Alejandro
13s queued 10s
created

responseHasGifTypeAndIsNotEmpty()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\Common\Response;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\Common\Response\PixelResponse;
8
9
class PixelResponseTest extends TestCase
10
{
11
    /**
12
     * @var PixelResponse
13
     */
14
    private $resp;
15
16
    public function setUp()
17
    {
18
        $this->resp = new PixelResponse();
19
    }
20
21
    /**
22
     * @test
23
     */
24
    public function responseHasGifTypeAndIsNotEmpty()
25
    {
26
        $this->assertEquals('image/gif', $this->resp->getHeaderLine('Content-Type'));
27
        $this->assertNotEmpty((string) $this->resp->getBody());
28
    }
29
}
30