Skip to content

Commit

Permalink
Test the previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Mar 19, 2015
1 parent c0a71ac commit 4b149f0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/HTTP/Auth/BasicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ function testGetCredentials() {

}

function testGetInvalidCredentialsColonMissing() {

$request = new Request('GET','/',array(
'Authorization' => 'Basic ' . base64_encode('userpass')
));

$basic = new Basic('Dagger', $request, new Response());

$this->assertNull($basic->getCredentials($request));

}

function testGetCredentialsNoheader() {

$request = new Request('GET','/',array());
Expand Down

0 comments on commit 4b149f0

Please sign in to comment.