Skip to content

Commit 9010dbe

Browse files
committed
Merge pull request KnpLabs#286 from lucasmichot/feature/fixes
Some fixes
2 parents c49b2ec + d6602e7 commit 9010dbe

32 files changed

+65
-94
lines changed

lib/Github/Api/Repository/Assets.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Github\Api\AbstractApi;
66
use Github\Exception\ErrorException;
77
use Github\Exception\MissingArgumentException;
8-
use Github\HttpClient\HttpClient;
98

109
/**
1110
* @link http://developer.github.com/v3/repos/releases/

lib/Github/Api/Repository/Contents.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ public function update($username, $repository, $path, $content, $message, $sha,
173173
return $this->put($url, $parameters);
174174
}
175175

176-
177176
/**
178177
* Deletes a file from a repository.
179178
*

lib/Github/Api/Search.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
namespace Github\Api;
44

5-
use Github\Api\Issue\Comments;
6-
use Github\Api\Issue\Events;
7-
use Github\Api\Issue\Labels;
8-
use Github\Api\Issue\Milestones;
9-
use Github\Exception\MissingArgumentException;
10-
115
/**
126
* Implement the Search API.
137
*

lib/Github/HttpClient/Listener/ErrorListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Github\Exception\TwoFactorAuthenticationRequiredException;
66
use Github\HttpClient\Message\ResponseMediator;
77
use Guzzle\Common\Event;
8-
use Guzzle\Http\Message\Response;
98
use Github\Exception\ApiLimitExceedException;
109
use Github\Exception\ErrorException;
1110
use Github\Exception\RuntimeException;

test/Github/Tests/Api/CurrentUser/DeployKeysTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class DeployKeysTest extends TestCase
86
{
97
/**
@@ -57,7 +55,7 @@ public function shouldCreateKey()
5755

5856
/**
5957
* @test
60-
* @expectedException Github\Exception\MissingArgumentException
58+
* @expectedException \Github\Exception\MissingArgumentException
6159
*/
6260
public function shouldNotCreateKeyWithoutTitleParam()
6361
{
@@ -72,7 +70,7 @@ public function shouldNotCreateKeyWithoutTitleParam()
7270

7371
/**
7472
* @test
75-
* @expectedException Github\Exception\MissingArgumentException
73+
* @expectedException \Github\Exception\MissingArgumentException
7674
*/
7775
public function shouldNotCreateKeyWithoutKeyParam()
7876
{
@@ -104,7 +102,7 @@ public function shouldUpdateKey()
104102

105103
/**
106104
* @test
107-
* @expectedException Github\Exception\MissingArgumentException
105+
* @expectedException \Github\Exception\MissingArgumentException
108106
*/
109107
public function shouldNotUpdateKeyWithoutTitleParam()
110108
{
@@ -119,7 +117,7 @@ public function shouldNotUpdateKeyWithoutTitleParam()
119117

120118
/**
121119
* @test
122-
* @expectedException Github\Exception\MissingArgumentException
120+
* @expectedException \Github\Exception\MissingArgumentException
123121
*/
124122
public function shouldNotUpdateKeyWithoutKeyParam()
125123
{

test/Github/Tests/Api/CurrentUser/EmailsTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class EmailsTest extends TestCase
86
{
97
/**
@@ -56,7 +54,7 @@ public function shouldRemoveEmails()
5654

5755
/**
5856
* @test
59-
* @expectedException Github\Exception\InvalidArgumentException
57+
* @expectedException \Github\Exception\InvalidArgumentException
6058
*/
6159
public function shouldNotRemoveEmailsWhenAreNotPass()
6260
{
@@ -101,7 +99,7 @@ public function shouldAddEmails()
10199

102100
/**
103101
* @test
104-
* @expectedException Github\Exception\InvalidArgumentException
102+
* @expectedException \Github\Exception\InvalidArgumentException
105103
*/
106104
public function shouldNotAddEmailsWhenAreNotPass()
107105
{

test/Github/Tests/Api/CurrentUser/FollowersTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class FollowersTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUser/StarringTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class StarringTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUser/WatchersTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class WatchersTest extends TestCase
86
{
97
/**

test/Github/Tests/Api/CurrentUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function shouldGetWatchersApiObject()
133133

134134
$this->assertInstanceOf('Github\Api\CurrentUser\Watchers', $api->watchers());
135135
}
136-
136+
137137
/**
138138
* @test
139139
*/

test/Github/Tests/Api/DeploymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function shouldCreateStatusUpdate()
6363

6464
/**
6565
* @test
66-
* @expectedException GitHub\Exception\MissingArgumentException
66+
* @expectedException \Github\Exception\MissingArgumentException
6767
*/
6868
public function shouldRejectStatusUpdateWithoutStateField()
6969
{

test/Github/Tests/Api/GistsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function shouldListGistForks()
112112

113113
/**
114114
* @test
115-
* @expectedException Github\Exception\MissingArgumentException
115+
* @expectedException \Github\Exception\MissingArgumentException
116116
*/
117117
public function shouldNotCreateGistWithoutFile()
118118
{

test/Github/Tests/Api/GitData/BlobsTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class BlobsTest extends TestCase
86
{
97
/**
@@ -69,7 +67,7 @@ public function shouldCreateBlob()
6967

7068
/**
7169
* @test
72-
* @expectedException Github\Exception\MissingArgumentException
70+
* @expectedException \Github\Exception\MissingArgumentException
7371
*/
7472
public function shouldNotCreateBlobWithoutEncoding()
7573
{
@@ -84,7 +82,7 @@ public function shouldNotCreateBlobWithoutEncoding()
8482

8583
/**
8684
* @test
87-
* @expectedException Github\Exception\MissingArgumentException
85+
* @expectedException \Github\Exception\MissingArgumentException
8886
*/
8987
public function shouldNotCreateBlobWithoutContent()
9088
{

test/Github/Tests/Api/GitData/CommitsTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class CommitsTest extends TestCase
86
{
97
/**
@@ -41,7 +39,7 @@ public function shouldCreateCommit()
4139

4240
/**
4341
* @test
44-
* @expectedException Github\Exception\MissingArgumentException
42+
* @expectedException \Github\Exception\MissingArgumentException
4543
*/
4644
public function shouldNotCreateCommitWithoutMessageParam()
4745
{
@@ -56,7 +54,7 @@ public function shouldNotCreateCommitWithoutMessageParam()
5654

5755
/**
5856
* @test
59-
* @expectedException Github\Exception\MissingArgumentException
57+
* @expectedException \Github\Exception\MissingArgumentException
6058
*/
6159
public function shouldNotCreateCommitWithoutTreeParam()
6260
{
@@ -71,7 +69,7 @@ public function shouldNotCreateCommitWithoutTreeParam()
7169

7270
/**
7371
* @test
74-
* @expectedException Github\Exception\MissingArgumentException
72+
* @expectedException \Github\Exception\MissingArgumentException
7573
*/
7674
public function shouldNotCreateCommitWithoutParentsParam()
7775
{

test/Github/Tests/Api/GitData/ReferencesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function shouldCreateReference()
119119

120120
/**
121121
* @test
122-
* @expectedException Github\Exception\MissingArgumentException
122+
* @expectedException \Github\Exception\MissingArgumentException
123123
*/
124124
public function shouldNotCreateReferenceWithoutShaParam()
125125
{
@@ -134,7 +134,7 @@ public function shouldNotCreateReferenceWithoutShaParam()
134134

135135
/**
136136
* @test
137-
* @expectedException Github\Exception\MissingArgumentException
137+
* @expectedException \Github\Exception\MissingArgumentException
138138
*/
139139
public function shouldNotCreateReferenceWithoutRefsParam()
140140
{
@@ -166,7 +166,7 @@ public function shouldUpdateReference()
166166

167167
/**
168168
* @test
169-
* @expectedException Github\Exception\MissingArgumentException
169+
* @expectedException \Github\Exception\MissingArgumentException
170170
*/
171171
public function shouldNoUpdateReferenceWithoutSha()
172172
{

test/Github/Tests/Api/GitData/TagsTest.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class TagsTest extends TestCase
86
{
97
/**
@@ -67,7 +65,7 @@ public function shouldCreateTag()
6765

6866
/**
6967
* @test
70-
* @expectedException Github\Exception\MissingArgumentException
68+
* @expectedException \Github\Exception\MissingArgumentException
7169
*/
7270
public function shouldNotCreateTagWithoutMessageParam()
7371
{
@@ -91,7 +89,7 @@ public function shouldNotCreateTagWithoutMessageParam()
9189

9290
/**
9391
* @test
94-
* @expectedException Github\Exception\MissingArgumentException
92+
* @expectedException \Github\Exception\MissingArgumentException
9593
*/
9694
public function shouldNotCreateTagWithoutTaggerParam()
9795
{
@@ -111,7 +109,7 @@ public function shouldNotCreateTagWithoutTaggerParam()
111109

112110
/**
113111
* @test
114-
* @expectedException Github\Exception\MissingArgumentException
112+
* @expectedException \Github\Exception\MissingArgumentException
115113
*/
116114
public function shouldNotCreateTagWithoutTaggerNameParam()
117115
{
@@ -135,7 +133,7 @@ public function shouldNotCreateTagWithoutTaggerNameParam()
135133

136134
/**
137135
* @test
138-
* @expectedException Github\Exception\MissingArgumentException
136+
* @expectedException \Github\Exception\MissingArgumentException
139137
*/
140138
public function shouldNotCreateTagWithoutTaggerEmailParam()
141139
{
@@ -159,7 +157,7 @@ public function shouldNotCreateTagWithoutTaggerEmailParam()
159157

160158
/**
161159
* @test
162-
* @expectedException Github\Exception\MissingArgumentException
160+
* @expectedException \Github\Exception\MissingArgumentException
163161
*/
164162
public function shouldNotCreateTagWithoutTaggerDateParam()
165163
{
@@ -183,7 +181,7 @@ public function shouldNotCreateTagWithoutTaggerDateParam()
183181

184182
/**
185183
* @test
186-
* @expectedException Github\Exception\MissingArgumentException
184+
* @expectedException \Github\Exception\MissingArgumentException
187185
*/
188186
public function shouldNotCreateTagWithoutTagParam()
189187
{
@@ -207,7 +205,7 @@ public function shouldNotCreateTagWithoutTagParam()
207205

208206
/**
209207
* @test
210-
* @expectedException Github\Exception\MissingArgumentException
208+
* @expectedException \Github\Exception\MissingArgumentException
211209
*/
212210
public function shouldNotCreateTagWithoutObjectParam()
213211
{
@@ -231,7 +229,7 @@ public function shouldNotCreateTagWithoutObjectParam()
231229

232230
/**
233231
* @test
234-
* @expectedException Github\Exception\MissingArgumentException
232+
* @expectedException \Github\Exception\MissingArgumentException
235233
*/
236234
public function shouldNotCreateTagWithoutTypeParam()
237235
{

test/Github/Tests/Api/GitData/TreesTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Github\Tests\Api;
44

5-
use Github\Tests\Api\TestCase;
6-
75
class TreesTest extends TestCase
86
{
97
/**
@@ -88,7 +86,7 @@ public function shouldCreateTreeUsingContent()
8886

8987
/**
9088
* @test
91-
* @expectedException Github\Exception\MissingArgumentException
89+
* @expectedException \Github\Exception\MissingArgumentException
9290
*/
9391
public function shouldNotCreateTreeWithoutShaAndContentParam()
9492
{
@@ -109,7 +107,7 @@ public function shouldNotCreateTreeWithoutShaAndContentParam()
109107

110108
/**
111109
* @test
112-
* @expectedException Github\Exception\MissingArgumentException
110+
* @expectedException \Github\Exception\MissingArgumentException
113111
*/
114112
public function shouldNotCreateTreeWithoutPathParam()
115113
{
@@ -130,7 +128,7 @@ public function shouldNotCreateTreeWithoutPathParam()
130128

131129
/**
132130
* @test
133-
* @expectedException Github\Exception\MissingArgumentException
131+
* @expectedException \Github\Exception\MissingArgumentException
134132
*/
135133
public function shouldNotCreateTreeWithoutModeParam()
136134
{
@@ -151,7 +149,7 @@ public function shouldNotCreateTreeWithoutModeParam()
151149

152150
/**
153151
* @test
154-
* @expectedException Github\Exception\MissingArgumentException
152+
* @expectedException \Github\Exception\MissingArgumentException
155153
*/
156154
public function shouldNotCreateTreeWithoutTypeParam()
157155
{
@@ -172,7 +170,7 @@ public function shouldNotCreateTreeWithoutTypeParam()
172170

173171
/**
174172
* @test
175-
* @expectedException Github\Exception\MissingArgumentException
173+
* @expectedException \Github\Exception\MissingArgumentException
176174
*/
177175
public function shouldNotCreateTreeWithoutTreeParam()
178176
{
@@ -187,7 +185,7 @@ public function shouldNotCreateTreeWithoutTreeParam()
187185

188186
/**
189187
* @test
190-
* @expectedException Github\Exception\MissingArgumentException
188+
* @expectedException \Github\Exception\MissingArgumentException
191189
*/
192190
public function shouldNotCreateTreeWhenTreeParamIsNotArray()
193191
{

0 commit comments

Comments
 (0)