Completed
Push — master ( 56188b...c1d9b8 )
by Philip
03:37
created

ClientTest::typeOfRequestWithArgumentProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace Manavo\DoneDone\Test;
4
5
use Manavo\DoneDone\Client;
6
use Manavo\DoneDone\Company;
7
use PHPUnit_Framework_TestCase;
8
9
class ClientTest extends PHPUnit_Framework_TestCase
10
{
11
12
    /**
13
     * @var Client
14
     */
15
    private $client;
16
17
    public function setUp()
18
    {
19
        $this->client = new Client('team', 'username', 'password');
20
    }
21
22
    public function tearDown()
23
    {
24
        $this->client = null;
25
    }
26
27
    public function testProjectMethodReturnsIssueObject()
28
    {
29
        $this->assertInstanceOf(
30
            'Manavo\\DoneDone\\Project', $this->client->project(1)
31
        );
32
    }
33
34
    public function testCompanyMethodReturnsIssueObject()
35
    {
36
        $this->assertInstanceOf(
37
            'Manavo\\DoneDone\\Company', $this->client->company(1)
38
        );
39
    }
40
41
}
42