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

PixelResponseTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A responseHasGifTypeAndIsNotEmpty() 0 4 1
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