Skip to content

Commit

Permalink
Add missing simple test for authentication with `Client::AUTH_URL_CLI…
Browse files Browse the repository at this point in the history
…ENT_ID`, extended Travis-CI testing
  • Loading branch information
stloyd committed Dec 21, 2012
1 parent c633cc7 commit 161335d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
language: php

php:
- 5.3.3
- 5.3
- 5.4
- 5.5

before_script:
- composer install --dev
- composer install --dev --prefer-source

script:
- phpunit --coverage-text
11 changes: 11 additions & 0 deletions test/Github/Tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ public function shouldAuthenticateUsingUrlToken()
$this->assertInstanceOf('Github\HttpClient\HttpClient', $client->getHttpClient());
}

/**
* @test
*/
public function shouldAuthenticateUsingUrlClientId()
{
$client = new Client();
$client->authenticate('client_id', 'client_secret', Client::AUTH_URL_CLIENT_ID);

$this->assertInstanceOf('Github\HttpClient\HttpClient', $client->getHttpClient());
}

/**
* @test
*/
Expand Down

0 comments on commit 161335d

Please sign in to comment.