Passed
Pull Request — master (#1)
by Jonathan
02:38
created

IssueClientResponseTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ChangelogGenerator\Tests;
6
7
use ChangelogGenerator\IssueClientResponse;
8
use PHPUnit\Framework\TestCase;
9
10
final class IssueClientResponseTest extends TestCase
11
{
12
    /** @var mixed[] */
13
    private $body;
14
15
    /** @var string|null */
16
    private $nextUrl;
17
18
    /** @var IssueClientResponse */
19
    private $issueClientResponse;
20
21
    public function testGetBody() : void
22
    {
23
        self::assertEquals($this->body, $this->issueClientResponse->getBody());
24
    }
25
26
    public function testGetNextUrl() : void
27
    {
28
        self::assertEquals($this->nextUrl, $this->issueClientResponse->getNextUrl());
29
    }
30
31
    protected function setUp() : void
32
    {
33
        $this->body    = ['body' => true];
34
        $this->nextUrl = 'https://www.google.com';
35
36
        $this->issueClientResponse = new IssueClientResponse(
37
            $this->body,
38
            $this->nextUrl
39
        );
40
    }
41
}
42