SlackResponseTest::setUp()   A
last analyzed

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
3
namespace SlackyTests\Http;
4
5
use PHPUnit\Framework\TestCase;
6
use Slacky\Http\SlackResponse;
7
8
/**
9
 * Class SlackResponseTest
10
 * @package SlackyTests\Http
11
 *
12
 * @property SlackResponse slackResponse
13
 */
14
class SlackResponseTest extends TestCase
15
{
16
    private $slackResponse;
17
18
    public function setUp()
19
    {
20
        parent::setUp();
21
        $this->slackResponse = new SlackResponse('{"ok":true}', [], 200);
22
    }
23
24
    /**
25
     * @test
26
     */
27
    public function it_gets_response_array()
28
    {
29
        $this->assertArraySubset([], $this->slackResponse->toArray());
30
    }
31
}