Skip to content

Commit

Permalink
zendframework#6301 - adding assertion for auth type state being set
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and dima committed Nov 27, 2014
1 parent ea3484e commit 45af0db
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ZendTest/Http/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ public function testPrepareHeadersCreateRightHttpField()
}

/**
<<<<<<< Upstream, based on zf2/master
<<<<<<< Upstream, based on zf2/master
* @group 6231
*/
Expand Down Expand Up @@ -411,11 +412,28 @@ public function testHttpQueryParametersCastToString()
* Test for pull request 6301
* Previous functionality would have thrown an exception
* This test serves to verify that exception is not thrown
=======
* @group 6301
>>>>>>> f5ea706 #6301 - adding assertion for auth type state being set
*/
public function testCanSpecifyCustomAuthMethodsInExtendingClasses()
{
$client = new ExtendedClient();

$client->setAuth('username', 'password', ExtendedClient::AUTH_CUSTOM);
<<<<<<< Upstream, based on zf2/master
>>>>>>> d0d9ac2 Unit test for self:: to static:: Http\Client update
=======

$this->assertAttributeEquals(
array (
'user' => 'username',
'password' => 'password',
'type' => ExtendedClient::AUTH_CUSTOM,
),
'auth',
$client
);
>>>>>>> f5ea706 #6301 - adding assertion for auth type state being set
}
}

0 comments on commit 45af0db

Please sign in to comment.