SlackResponseTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

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