Skip to content

Some fixes #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion lib/Github/Api/Repository/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
1 change: 0 additions & 1 deletion lib/Github/Api/Repository/Contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function update($username, $repository, $path, $content, $message, $sha,
return $this->put($url, $parameters);
}


/**
* Deletes a file from a repository.
*
Expand Down
6 changes: 0 additions & 6 deletions lib/Github/Api/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
1 change: 0 additions & 1 deletion lib/Github/HttpClient/Listener/ErrorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 4 additions & 6 deletions test/Github/Tests/Api/CurrentUser/DeployKeysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class DeployKeysTest extends TestCase
{
/**
Expand Down Expand Up @@ -57,7 +55,7 @@ public function shouldCreateKey()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateKeyWithoutTitleParam()
{
Expand All @@ -72,7 +70,7 @@ public function shouldNotCreateKeyWithoutTitleParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateKeyWithoutKeyParam()
{
Expand Down Expand Up @@ -104,7 +102,7 @@ public function shouldUpdateKey()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotUpdateKeyWithoutTitleParam()
{
Expand All @@ -119,7 +117,7 @@ public function shouldNotUpdateKeyWithoutTitleParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotUpdateKeyWithoutKeyParam()
{
Expand Down
6 changes: 2 additions & 4 deletions test/Github/Tests/Api/CurrentUser/EmailsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class EmailsTest extends TestCase
{
/**
Expand Down Expand Up @@ -56,7 +54,7 @@ public function shouldRemoveEmails()

/**
* @test
* @expectedException Github\Exception\InvalidArgumentException
* @expectedException \Github\Exception\InvalidArgumentException
*/
public function shouldNotRemoveEmailsWhenAreNotPass()
{
Expand Down Expand Up @@ -101,7 +99,7 @@ public function shouldAddEmails()

/**
* @test
* @expectedException Github\Exception\InvalidArgumentException
* @expectedException \Github\Exception\InvalidArgumentException
*/
public function shouldNotAddEmailsWhenAreNotPass()
{
Expand Down
2 changes: 0 additions & 2 deletions test/Github/Tests/Api/CurrentUser/FollowersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class FollowersTest extends TestCase
{
/**
Expand Down
2 changes: 0 additions & 2 deletions test/Github/Tests/Api/CurrentUser/StarringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class StarringTest extends TestCase
{
/**
Expand Down
2 changes: 0 additions & 2 deletions test/Github/Tests/Api/CurrentUser/WatchersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class WatchersTest extends TestCase
{
/**
Expand Down
2 changes: 1 addition & 1 deletion test/Github/Tests/Api/CurrentUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function shouldGetWatchersApiObject()

$this->assertInstanceOf('Github\Api\CurrentUser\Watchers', $api->watchers());
}

/**
* @test
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Github/Tests/Api/DeploymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function shouldCreateStatusUpdate()

/**
* @test
* @expectedException GitHub\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldRejectStatusUpdateWithoutStateField()
{
Expand Down
2 changes: 1 addition & 1 deletion test/Github/Tests/Api/GistsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function shouldListGistForks()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateGistWithoutFile()
{
Expand Down
6 changes: 2 additions & 4 deletions test/Github/Tests/Api/GitData/BlobsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class BlobsTest extends TestCase
{
/**
Expand Down Expand Up @@ -69,7 +67,7 @@ public function shouldCreateBlob()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateBlobWithoutEncoding()
{
Expand All @@ -84,7 +82,7 @@ public function shouldNotCreateBlobWithoutEncoding()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateBlobWithoutContent()
{
Expand Down
8 changes: 3 additions & 5 deletions test/Github/Tests/Api/GitData/CommitsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class CommitsTest extends TestCase
{
/**
Expand Down Expand Up @@ -41,7 +39,7 @@ public function shouldCreateCommit()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateCommitWithoutMessageParam()
{
Expand All @@ -56,7 +54,7 @@ public function shouldNotCreateCommitWithoutMessageParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateCommitWithoutTreeParam()
{
Expand All @@ -71,7 +69,7 @@ public function shouldNotCreateCommitWithoutTreeParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateCommitWithoutParentsParam()
{
Expand Down
6 changes: 3 additions & 3 deletions test/Github/Tests/Api/GitData/ReferencesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function shouldCreateReference()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateReferenceWithoutShaParam()
{
Expand All @@ -134,7 +134,7 @@ public function shouldNotCreateReferenceWithoutShaParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateReferenceWithoutRefsParam()
{
Expand Down Expand Up @@ -166,7 +166,7 @@ public function shouldUpdateReference()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNoUpdateReferenceWithoutSha()
{
Expand Down
18 changes: 8 additions & 10 deletions test/Github/Tests/Api/GitData/TagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class TagsTest extends TestCase
{
/**
Expand Down Expand Up @@ -67,7 +65,7 @@ public function shouldCreateTag()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutMessageParam()
{
Expand All @@ -91,7 +89,7 @@ public function shouldNotCreateTagWithoutMessageParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTaggerParam()
{
Expand All @@ -111,7 +109,7 @@ public function shouldNotCreateTagWithoutTaggerParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTaggerNameParam()
{
Expand All @@ -135,7 +133,7 @@ public function shouldNotCreateTagWithoutTaggerNameParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTaggerEmailParam()
{
Expand All @@ -159,7 +157,7 @@ public function shouldNotCreateTagWithoutTaggerEmailParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTaggerDateParam()
{
Expand All @@ -183,7 +181,7 @@ public function shouldNotCreateTagWithoutTaggerDateParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTagParam()
{
Expand All @@ -207,7 +205,7 @@ public function shouldNotCreateTagWithoutTagParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutObjectParam()
{
Expand All @@ -231,7 +229,7 @@ public function shouldNotCreateTagWithoutObjectParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTagWithoutTypeParam()
{
Expand Down
14 changes: 6 additions & 8 deletions test/Github/Tests/Api/GitData/TreesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Github\Tests\Api;

use Github\Tests\Api\TestCase;

class TreesTest extends TestCase
{
/**
Expand Down Expand Up @@ -88,7 +86,7 @@ public function shouldCreateTreeUsingContent()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWithoutShaAndContentParam()
{
Expand All @@ -109,7 +107,7 @@ public function shouldNotCreateTreeWithoutShaAndContentParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWithoutPathParam()
{
Expand All @@ -130,7 +128,7 @@ public function shouldNotCreateTreeWithoutPathParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWithoutModeParam()
{
Expand All @@ -151,7 +149,7 @@ public function shouldNotCreateTreeWithoutModeParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWithoutTypeParam()
{
Expand All @@ -172,7 +170,7 @@ public function shouldNotCreateTreeWithoutTypeParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWithoutTreeParam()
{
Expand All @@ -187,7 +185,7 @@ public function shouldNotCreateTreeWithoutTreeParam()

/**
* @test
* @expectedException Github\Exception\MissingArgumentException
* @expectedException \Github\Exception\MissingArgumentException
*/
public function shouldNotCreateTreeWhenTreeParamIsNotArray()
{
Expand Down
Loading