1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
<?php
namespace Guzzle\Tests\Parser\Cookie;
use Guzzle\Parser\Cookie\CookieParser;
/**
* @covers Guzzle\Parser\Cookie\CookieParser
*/
class CookieParserTest extends CookieParserProvider
{
protected $cookieParserClass = 'Guzzle\Parser\Cookie\CookieParser';
public function testUrlDecodesCookies()
{
$parser = new CookieParser();
$result = $parser->parseCookie('foo=baz+bar', null, null, true);
$this->assertEquals(array(
'foo' => 'baz bar'
), $result['cookies']);
}
}