Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Update Zend\Authentication for Zend\Http changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurian Sluiman committed Jun 30, 2012
1 parent f9f8093 commit 927c00d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testClientRetrievesUppercaseHttpMethodFromRequestObject()
$client->setMethod('post');
$this->assertEquals(Client::ENC_URLENCODED, $client->getEncType());
}

public function testIfZeroValueCookiesCanBeSet()
{
try {
Expand All @@ -27,23 +27,23 @@ public function testIfZeroValueCookiesCanBeSet()
}
$this->assertTrue(true);
}

/**
* @expectedException Zend\Http\Exception\InvalidArgumentException
*/
public function testIfNullValueCookiesThrowsException()
{
$client = new Client();
$client->addCookie("test", null);
}
}

public function testIfCookieHeaderCanBeSet()
{
$header = new SetCookie('foo');

$client = new Client();
$client->addCookie($header);

$cookies = $client->getCookies();
$this->assertEquals(1, count($cookies));
$this->assertEquals($header, $cookies['foo']);
Expand All @@ -58,7 +58,7 @@ public function testIfArrayOfHeadersCanBeSet()

$client = new Client();
$client->addCookie($headers);

$cookies = $client->getCookies();
$this->assertEquals(2, count($cookies));
}
Expand All @@ -69,10 +69,10 @@ public function testIfArrayIteratorOfHeadersCanBeSet()
new SetCookie('foo'),
new SetCookie('bar')
));

$client = new Client();
$client->addCookie($headers);

$cookies = $client->getCookies();
$this->assertEquals(2, count($cookies));
}
Expand Down

0 comments on commit 927c00d

Please sign in to comment.