diff --git a/lib/Github/Api/Repository/Assets.php b/lib/Github/Api/Repository/Assets.php index dbd448c7e28..b386561796e 100644 --- a/lib/Github/Api/Repository/Assets.php +++ b/lib/Github/Api/Repository/Assets.php @@ -5,7 +5,6 @@ use Github\Api\AbstractApi; use Github\Exception\ErrorException; use Github\Exception\MissingArgumentException; -use Github\HttpClient\HttpClient; /** * @link http://developer.github.com/v3/repos/releases/ diff --git a/lib/Github/Api/Repository/Contents.php b/lib/Github/Api/Repository/Contents.php index c98898af63a..450c14b5845 100644 --- a/lib/Github/Api/Repository/Contents.php +++ b/lib/Github/Api/Repository/Contents.php @@ -173,7 +173,6 @@ public function update($username, $repository, $path, $content, $message, $sha, return $this->put($url, $parameters); } - /** * Deletes a file from a repository. * diff --git a/lib/Github/Api/Search.php b/lib/Github/Api/Search.php index cd55d5a1f94..6ca29ea62b7 100644 --- a/lib/Github/Api/Search.php +++ b/lib/Github/Api/Search.php @@ -2,12 +2,6 @@ namespace Github\Api; -use Github\Api\Issue\Comments; -use Github\Api\Issue\Events; -use Github\Api\Issue\Labels; -use Github\Api\Issue\Milestones; -use Github\Exception\MissingArgumentException; - /** * Implement the Search API. * diff --git a/lib/Github/HttpClient/Listener/ErrorListener.php b/lib/Github/HttpClient/Listener/ErrorListener.php index 72736255429..1f6cd5187b5 100644 --- a/lib/Github/HttpClient/Listener/ErrorListener.php +++ b/lib/Github/HttpClient/Listener/ErrorListener.php @@ -5,7 +5,6 @@ use Github\Exception\TwoFactorAuthenticationRequiredException; use Github\HttpClient\Message\ResponseMediator; use Guzzle\Common\Event; -use Guzzle\Http\Message\Response; use Github\Exception\ApiLimitExceedException; use Github\Exception\ErrorException; use Github\Exception\RuntimeException; diff --git a/test/Github/Tests/Api/CurrentUser/DeployKeysTest.php b/test/Github/Tests/Api/CurrentUser/DeployKeysTest.php index 4075e44040b..f813ca80673 100644 --- a/test/Github/Tests/Api/CurrentUser/DeployKeysTest.php +++ b/test/Github/Tests/Api/CurrentUser/DeployKeysTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class DeployKeysTest extends TestCase { /** @@ -57,7 +55,7 @@ public function shouldCreateKey() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateKeyWithoutTitleParam() { @@ -72,7 +70,7 @@ public function shouldNotCreateKeyWithoutTitleParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateKeyWithoutKeyParam() { @@ -104,7 +102,7 @@ public function shouldUpdateKey() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateKeyWithoutTitleParam() { @@ -119,7 +117,7 @@ public function shouldNotUpdateKeyWithoutTitleParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateKeyWithoutKeyParam() { diff --git a/test/Github/Tests/Api/CurrentUser/EmailsTest.php b/test/Github/Tests/Api/CurrentUser/EmailsTest.php index 9dbf81ac697..33e1f704c7f 100644 --- a/test/Github/Tests/Api/CurrentUser/EmailsTest.php +++ b/test/Github/Tests/Api/CurrentUser/EmailsTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class EmailsTest extends TestCase { /** @@ -56,7 +54,7 @@ public function shouldRemoveEmails() /** * @test - * @expectedException Github\Exception\InvalidArgumentException + * @expectedException \Github\Exception\InvalidArgumentException */ public function shouldNotRemoveEmailsWhenAreNotPass() { @@ -101,7 +99,7 @@ public function shouldAddEmails() /** * @test - * @expectedException Github\Exception\InvalidArgumentException + * @expectedException \Github\Exception\InvalidArgumentException */ public function shouldNotAddEmailsWhenAreNotPass() { diff --git a/test/Github/Tests/Api/CurrentUser/FollowersTest.php b/test/Github/Tests/Api/CurrentUser/FollowersTest.php index 9d0174fc2ea..d2e74ec438b 100644 --- a/test/Github/Tests/Api/CurrentUser/FollowersTest.php +++ b/test/Github/Tests/Api/CurrentUser/FollowersTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class FollowersTest extends TestCase { /** diff --git a/test/Github/Tests/Api/CurrentUser/StarringTest.php b/test/Github/Tests/Api/CurrentUser/StarringTest.php index c2cba90cfb1..bc5943ee4e3 100644 --- a/test/Github/Tests/Api/CurrentUser/StarringTest.php +++ b/test/Github/Tests/Api/CurrentUser/StarringTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class StarringTest extends TestCase { /** diff --git a/test/Github/Tests/Api/CurrentUser/WatchersTest.php b/test/Github/Tests/Api/CurrentUser/WatchersTest.php index e2234ed7efb..c8383935b70 100644 --- a/test/Github/Tests/Api/CurrentUser/WatchersTest.php +++ b/test/Github/Tests/Api/CurrentUser/WatchersTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class WatchersTest extends TestCase { /** diff --git a/test/Github/Tests/Api/CurrentUserTest.php b/test/Github/Tests/Api/CurrentUserTest.php index 1549f3621c0..f1dd27b0b77 100644 --- a/test/Github/Tests/Api/CurrentUserTest.php +++ b/test/Github/Tests/Api/CurrentUserTest.php @@ -133,7 +133,7 @@ public function shouldGetWatchersApiObject() $this->assertInstanceOf('Github\Api\CurrentUser\Watchers', $api->watchers()); } - + /** * @test */ diff --git a/test/Github/Tests/Api/DeploymentTest.php b/test/Github/Tests/Api/DeploymentTest.php index 2bcbb4d5d25..baa692e430b 100644 --- a/test/Github/Tests/Api/DeploymentTest.php +++ b/test/Github/Tests/Api/DeploymentTest.php @@ -63,7 +63,7 @@ public function shouldCreateStatusUpdate() /** * @test - * @expectedException GitHub\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldRejectStatusUpdateWithoutStateField() { diff --git a/test/Github/Tests/Api/GistsTest.php b/test/Github/Tests/Api/GistsTest.php index 6a979c5ee19..7f5ffe35843 100644 --- a/test/Github/Tests/Api/GistsTest.php +++ b/test/Github/Tests/Api/GistsTest.php @@ -112,7 +112,7 @@ public function shouldListGistForks() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateGistWithoutFile() { diff --git a/test/Github/Tests/Api/GitData/BlobsTest.php b/test/Github/Tests/Api/GitData/BlobsTest.php index cd9d1c8e1b3..4df2c67a723 100644 --- a/test/Github/Tests/Api/GitData/BlobsTest.php +++ b/test/Github/Tests/Api/GitData/BlobsTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class BlobsTest extends TestCase { /** @@ -69,7 +67,7 @@ public function shouldCreateBlob() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateBlobWithoutEncoding() { @@ -84,7 +82,7 @@ public function shouldNotCreateBlobWithoutEncoding() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateBlobWithoutContent() { diff --git a/test/Github/Tests/Api/GitData/CommitsTest.php b/test/Github/Tests/Api/GitData/CommitsTest.php index a665d90a495..fa3cd60f1a8 100644 --- a/test/Github/Tests/Api/GitData/CommitsTest.php +++ b/test/Github/Tests/Api/GitData/CommitsTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class CommitsTest extends TestCase { /** @@ -41,7 +39,7 @@ public function shouldCreateCommit() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateCommitWithoutMessageParam() { @@ -56,7 +54,7 @@ public function shouldNotCreateCommitWithoutMessageParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateCommitWithoutTreeParam() { @@ -71,7 +69,7 @@ public function shouldNotCreateCommitWithoutTreeParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateCommitWithoutParentsParam() { diff --git a/test/Github/Tests/Api/GitData/ReferencesTest.php b/test/Github/Tests/Api/GitData/ReferencesTest.php index 06c4adb4ced..48f1775c6e5 100644 --- a/test/Github/Tests/Api/GitData/ReferencesTest.php +++ b/test/Github/Tests/Api/GitData/ReferencesTest.php @@ -119,7 +119,7 @@ public function shouldCreateReference() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateReferenceWithoutShaParam() { @@ -134,7 +134,7 @@ public function shouldNotCreateReferenceWithoutShaParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateReferenceWithoutRefsParam() { @@ -166,7 +166,7 @@ public function shouldUpdateReference() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNoUpdateReferenceWithoutSha() { diff --git a/test/Github/Tests/Api/GitData/TagsTest.php b/test/Github/Tests/Api/GitData/TagsTest.php index cd9cf8e536d..3062e5bba2f 100644 --- a/test/Github/Tests/Api/GitData/TagsTest.php +++ b/test/Github/Tests/Api/GitData/TagsTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class TagsTest extends TestCase { /** @@ -67,7 +65,7 @@ public function shouldCreateTag() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutMessageParam() { @@ -91,7 +89,7 @@ public function shouldNotCreateTagWithoutMessageParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTaggerParam() { @@ -111,7 +109,7 @@ public function shouldNotCreateTagWithoutTaggerParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTaggerNameParam() { @@ -135,7 +133,7 @@ public function shouldNotCreateTagWithoutTaggerNameParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTaggerEmailParam() { @@ -159,7 +157,7 @@ public function shouldNotCreateTagWithoutTaggerEmailParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTaggerDateParam() { @@ -183,7 +181,7 @@ public function shouldNotCreateTagWithoutTaggerDateParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTagParam() { @@ -207,7 +205,7 @@ public function shouldNotCreateTagWithoutTagParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutObjectParam() { @@ -231,7 +229,7 @@ public function shouldNotCreateTagWithoutObjectParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTagWithoutTypeParam() { diff --git a/test/Github/Tests/Api/GitData/TreesTest.php b/test/Github/Tests/Api/GitData/TreesTest.php index dc4a8211b20..2281331542b 100644 --- a/test/Github/Tests/Api/GitData/TreesTest.php +++ b/test/Github/Tests/Api/GitData/TreesTest.php @@ -2,8 +2,6 @@ namespace Github\Tests\Api; -use Github\Tests\Api\TestCase; - class TreesTest extends TestCase { /** @@ -88,7 +86,7 @@ public function shouldCreateTreeUsingContent() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWithoutShaAndContentParam() { @@ -109,7 +107,7 @@ public function shouldNotCreateTreeWithoutShaAndContentParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWithoutPathParam() { @@ -130,7 +128,7 @@ public function shouldNotCreateTreeWithoutPathParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWithoutModeParam() { @@ -151,7 +149,7 @@ public function shouldNotCreateTreeWithoutModeParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWithoutTypeParam() { @@ -172,7 +170,7 @@ public function shouldNotCreateTreeWithoutTypeParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWithoutTreeParam() { @@ -187,7 +185,7 @@ public function shouldNotCreateTreeWithoutTreeParam() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTreeWhenTreeParamIsNotArray() { diff --git a/test/Github/Tests/Api/Issue/CommentsTest.php b/test/Github/Tests/Api/Issue/CommentsTest.php index 687dc3a35f7..eca7bf45a98 100644 --- a/test/Github/Tests/Api/Issue/CommentsTest.php +++ b/test/Github/Tests/Api/Issue/CommentsTest.php @@ -40,7 +40,7 @@ public function shouldShowIssueComment() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateWithoutBody() { @@ -72,7 +72,7 @@ public function shouldCreateIssueComment() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateWithoutBody() { diff --git a/test/Github/Tests/Api/Issue/LabelsTest.php b/test/Github/Tests/Api/Issue/LabelsTest.php index 3a6b7009e5d..c8a457e0ac5 100644 --- a/test/Github/Tests/Api/Issue/LabelsTest.php +++ b/test/Github/Tests/Api/Issue/LabelsTest.php @@ -175,7 +175,7 @@ public function shouldReplaceLabels() /** * @test - * @expectedException Github\Exception\InvalidArgumentException + * @expectedException \Github\Exception\InvalidArgumentException */ public function shouldNotAddWhenDoNotHaveLabelsToAdd() { diff --git a/test/Github/Tests/Api/Issue/MilestonesTest.php b/test/Github/Tests/Api/Issue/MilestonesTest.php index 7ada6eff888..85594f69844 100644 --- a/test/Github/Tests/Api/Issue/MilestonesTest.php +++ b/test/Github/Tests/Api/Issue/MilestonesTest.php @@ -41,7 +41,7 @@ public function shouldCreateMilestone() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateMilestoneWithoutTitle() { diff --git a/test/Github/Tests/Api/IssueTest.php b/test/Github/Tests/Api/IssueTest.php index cdd7ba7f3b1..52bb39a240c 100644 --- a/test/Github/Tests/Api/IssueTest.php +++ b/test/Github/Tests/Api/IssueTest.php @@ -88,7 +88,7 @@ public function shouldCreateIssue() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateIssueWithoutTitle() { @@ -105,7 +105,7 @@ public function shouldNotCreateIssueWithoutTitle() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateIssueWithoutBody() { diff --git a/test/Github/Tests/Api/Organization/TeamsTest.php b/test/Github/Tests/Api/Organization/TeamsTest.php index 4fdea74bd14..5a38555f1d5 100644 --- a/test/Github/Tests/Api/Organization/TeamsTest.php +++ b/test/Github/Tests/Api/Organization/TeamsTest.php @@ -184,7 +184,7 @@ public function shouldRemoveTeamRepository() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateTeamWithoutName() { @@ -250,7 +250,7 @@ public function shouldCreateWithPullPermissionWhenPermissionParamNotRecognized() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateTeamWithoutName() { diff --git a/test/Github/Tests/Api/PullRequestTest.php b/test/Github/Tests/Api/PullRequestTest.php index 0a0aa067ce4..e35599e4448 100755 --- a/test/Github/Tests/Api/PullRequestTest.php +++ b/test/Github/Tests/Api/PullRequestTest.php @@ -190,7 +190,7 @@ public function shouldCreatePullRequestUsingIssueId() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreatePullRequestWithoutBase() { @@ -209,7 +209,7 @@ public function shouldNotCreatePullRequestWithoutBase() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreatePullRequestWithoutHead() { @@ -228,7 +228,7 @@ public function shouldNotCreatePullRequestWithoutHead() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreatePullRequestUsingTitleButWithoutBody() { @@ -247,7 +247,7 @@ public function shouldNotCreatePullRequestUsingTitleButWithoutBody() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreatePullRequestWithoutIssueIdOrTitle() { diff --git a/test/Github/Tests/Api/Repository/AssetsTest.php b/test/Github/Tests/Api/Repository/AssetsTest.php index be779cc4c65..dc6e6146b0b 100644 --- a/test/Github/Tests/Api/Repository/AssetsTest.php +++ b/test/Github/Tests/Api/Repository/AssetsTest.php @@ -86,7 +86,7 @@ public function shouldEditReleaseAsset() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotEditReleaseAssetWithoutName() { diff --git a/test/Github/Tests/Api/Repository/CommentsTest.php b/test/Github/Tests/Api/Repository/CommentsTest.php index b8220905a43..586736a183f 100644 --- a/test/Github/Tests/Api/Repository/CommentsTest.php +++ b/test/Github/Tests/Api/Repository/CommentsTest.php @@ -56,7 +56,7 @@ public function shouldShowComment() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateWithoutBody() { @@ -105,7 +105,7 @@ public function shouldCreateRepositoryCommitCommentWithoutLine() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateWithoutBody() { diff --git a/test/Github/Tests/Api/Repository/ContentsTest.php b/test/Github/Tests/Api/Repository/ContentsTest.php index 82009962f59..ddce2c9e905 100644 --- a/test/Github/Tests/Api/Repository/ContentsTest.php +++ b/test/Github/Tests/Api/Repository/ContentsTest.php @@ -135,7 +135,7 @@ public function shouldCreateNewFile() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException * @expectedExceptionMessage One or more of required ("name", "email") parameters is missing! */ public function shouldThrowExceptionWhenCreateNewFileWithInvalidCommitter() @@ -175,7 +175,7 @@ public function shouldUpdateFile() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException * @expectedExceptionMessage One or more of required ("name", "email") parameters is missing! */ public function shouldThrowExceptionWhenUpdateFileWithInvalidCommitter() @@ -213,7 +213,7 @@ public function shouldDeleteFile() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException * @expectedExceptionMessage One or more of required ("name", "email") parameters is missing! */ public function shouldThrowExceptionWhenDeleteFileWithInvalidCommitter() @@ -332,7 +332,6 @@ protected function getApiClass() return 'Github\Api\Repository\Contents'; } - private function getGuzzleResponseMock() { $responseMock = $this->getMockBuilder('\Guzzle\Http\Message\Response') diff --git a/test/Github/Tests/Api/Repository/DeployKeysTest.php b/test/Github/Tests/Api/Repository/DeployKeysTest.php index a235bad8f0b..1654471b69e 100644 --- a/test/Github/Tests/Api/Repository/DeployKeysTest.php +++ b/test/Github/Tests/Api/Repository/DeployKeysTest.php @@ -56,7 +56,7 @@ public function shouldRemoveDeployKey() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateDeployKeyWithoutName() { @@ -71,7 +71,7 @@ public function shouldNotCreateDeployKeyWithoutName() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateDeployKeyWithoutColor() { @@ -103,7 +103,7 @@ public function shouldCreateDeployKey() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateDeployKeyWithoutTitle() { @@ -118,7 +118,7 @@ public function shouldNotUpdateDeployKeyWithoutTitle() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateDeployKeyWithoutKey() { diff --git a/test/Github/Tests/Api/Repository/HooksTest.php b/test/Github/Tests/Api/Repository/HooksTest.php index 6744d8c9158..aa8e32b485d 100644 --- a/test/Github/Tests/Api/Repository/HooksTest.php +++ b/test/Github/Tests/Api/Repository/HooksTest.php @@ -56,7 +56,7 @@ public function shouldRemoveHook() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateHookWithoutName() { @@ -71,7 +71,7 @@ public function shouldNotCreateHookWithoutName() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateHookWithoutColor() { @@ -103,7 +103,7 @@ public function shouldCreateHook() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateHookWithoutName() { @@ -118,7 +118,7 @@ public function shouldNotUpdateHookWithoutName() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateHookWithoutConfig() { diff --git a/test/Github/Tests/Api/Repository/LabelsTest.php b/test/Github/Tests/Api/Repository/LabelsTest.php index 6526ec4b3bb..8b430e6b3f1 100644 --- a/test/Github/Tests/Api/Repository/LabelsTest.php +++ b/test/Github/Tests/Api/Repository/LabelsTest.php @@ -56,7 +56,7 @@ public function shouldRemoveLabel() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateLabelWithoutName() { @@ -71,7 +71,7 @@ public function shouldNotCreateLabelWithoutName() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateLabelWithoutColor() { @@ -103,7 +103,7 @@ public function shouldCreateLabel() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateLabelWithoutName() { @@ -118,7 +118,7 @@ public function shouldNotUpdateLabelWithoutName() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotUpdateLabelWithoutColor() { diff --git a/test/Github/Tests/Api/Repository/ReleasesTest.php b/test/Github/Tests/Api/Repository/ReleasesTest.php index ad42461c928..f9188e137a0 100644 --- a/test/Github/Tests/Api/Repository/ReleasesTest.php +++ b/test/Github/Tests/Api/Repository/ReleasesTest.php @@ -94,7 +94,7 @@ public function shouldCreateRepositoryRelease() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateRepositoryReleaseWithoutTagName() { diff --git a/test/Github/Tests/Api/Repository/StatusesTest.php b/test/Github/Tests/Api/Repository/StatusesTest.php index 8845a523b4d..68667fca7b1 100644 --- a/test/Github/Tests/Api/Repository/StatusesTest.php +++ b/test/Github/Tests/Api/Repository/StatusesTest.php @@ -57,7 +57,7 @@ public function shouldShowCombinedCommitStatuses() /** * @test - * @expectedException Github\Exception\MissingArgumentException + * @expectedException \Github\Exception\MissingArgumentException */ public function shouldNotCreateWithoutStatus() { diff --git a/test/Github/Tests/ClientTest.php b/test/Github/Tests/ClientTest.php index b7a8751fb39..a51996319d7 100644 --- a/test/Github/Tests/ClientTest.php +++ b/test/Github/Tests/ClientTest.php @@ -3,7 +3,6 @@ namespace Github\Tests; use Github\Client; -use Github\Exception\InvalidArgumentException; use Github\Exception\BadMethodCallException; class ClientTest extends \PHPUnit_Framework_TestCase @@ -78,7 +77,7 @@ public function getAuthenticationPartialData() /** * @test - * @expectedException InvalidArgumentException + * @expectedException \Github\Exception\InvalidArgumentException */ public function shouldThrowExceptionWhenAuthenticatingWithoutMethodSet() { @@ -138,7 +137,7 @@ public function shouldGetMagicApiInstance($apiName, $class) /** * @test - * @expectedException InvalidArgumentException + * @expectedException \Github\Exception\InvalidArgumentException */ public function shouldNotGetApiInstance() {