Test Failed
Pull Request — master (#46)
by David
02:47
created

ClientTest::testActivityReceiver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace FlexyProject\GitHub\Tests;
3
4
use FlexyProject\GitHub\Client;
5
use FlexyProject\GitHub\Receiver\{
6
    Activity, Enterprise, Gists, GitData, Issues, Miscellaneous, Organizations, PullRequests, Repositories, Search, Users
7
};
8
9
/**
10
 * Class ClientTest
11
 *
12
 * @package FlexyProject\GitHub\Tests
13
 */
14
class ClientTest extends AbstractTest
15
{
16
17
    /**
18
     * Test instance of Client's class
19
     */
20
    public function testClient()
21
    {
22
        $this->assertInstanceOf(Client::class, $this->client);
23
    }
24
25
    /**
26
     * Test instance of Activity's class
27
     */
28
    public function testActivityReceiver()
29
    {
30
        $this->assertInstanceOf(Activity::class, $this->client->getReceiver(Client::ACTIVITY));
31
    }
32
33
    /**
34
     * Test instance of Enterprise's class
35
     */
36
    public function testEnterpriseReceiver()
37
    {
38
        $this->assertInstanceOf(Enterprise::class, $this->client->getReceiver(Client::ENTERPRISE));
39
    }
40
41
    /**
42
     * Test instance of Gists's class
43
     */
44
    public function testGistsReceiver()
45
    {
46
        $this->assertInstanceOf(Gists::class, $this->client->getReceiver(Client::GISTS));
47
    }
48
49
    /**
50
     * Test instance of GitData's class
51
     */
52
    public function testGitDataReceiver()
53
    {
54
        $this->assertInstanceOf(GitData::class, $this->client->getReceiver(Client::GIT_DATA));
55
    }
56
57
    /**
58
     * Test instance of Issues's class
59
     */
60
    public function testIssuesReceiver()
61
    {
62
        $this->assertInstanceOf(Issues::class, $this->client->getReceiver(Client::ISSUES));
63
    }
64
65
    /**
66
     * Test instance of Miscellaneous's class
67
     */
68
    public function testMiscellaneousReceiver()
69
    {
70
        $this->assertInstanceOf(Miscellaneous::class, $this->client->getReceiver(Client::MISCELLANEOUS));
71
    }
72
73
    /**
74
     * Test instance of Organizations's class
75
     */
76
    public function testOrganizationsReceiver()
77
    {
78
        $this->assertInstanceOf(Organizations::class, $this->client->getReceiver(Client::ORGANIZATIONS));
79
    }
80
81
    /**
82
     * Test instance of PullRequests's class
83
     */
84
    public function testPullRequestsReceiver()
85
    {
86
        $this->assertInstanceOf(PullRequests::class, $this->client->getReceiver(Client::PULL_REQUESTS));
87
    }
88
89
    /**
90
     * Test instance of Repositories's class
91
     */
92
    public function testRepositoriesReceiver()
93
    {
94
        $this->assertInstanceOf(Repositories::class, $this->client->getReceiver(Client::REPOSITORIES));
95
    }
96
97
    /**
98
     * Test instance of Search's class
99
     */
100
    public function testSearchReceiver()
101
    {
102
        $this->assertInstanceOf(Search::class, $this->client->getReceiver(Client::SEARCH));
103
    }
104
105
    /**
106
     * Test instance of Users's class
107
     */
108
    public function testUsersReceiver()
109
    {
110
        $this->assertInstanceOf(Users::class, $this->client->getReceiver(Client::USERS));
111
    }
112
}