13 $cookie = Cookie::oneFromCookiePair($cookieString);
26 $this->assertCount(count($expectedNameValuePairs), $cookies);
28 for (
$i = 0;
$i < count($cookies);
$i++) {
29 $cookie = $cookies[
$i];
30 list ($expectedName, $expectedValue) = $expectedNameValuePairs[
$i];
38 $this->assertEquals($expectedName, $cookie->
getName());
39 $this->assertEquals($expectedValue, $cookie->
getValue());
45 [
'someCookie=something',
'someCookie',
'something'],
46 [
'hello%3Dworld=how%22are%27you',
'hello=world',
'how"are\'you'],
47 [
'empty=',
'empty',
''],
54 [
'theme=light; sessionToken=abc123', [
56 [
'sessionToken',
'abc123'],
59 [
'theme=light; sessionToken=abc123;', [
61 [
'sessionToken',
'abc123'],
static listFromCookieString($string)
Create a list of Cookies from a Cookie header value string.
provideParsesOneFromCookieStringData()
it_parses_list_from_cookie_string($cookieString, array $expectedNameValuePairs)
assertCookieNameAndValue(Cookie $cookie, $expectedName, $expectedValue)
provideParsesListFromCookieString()
Create styles array
The data for the language used.
it_parses_one_from_cookie_string($cookieString, $expectedName, $expectedValue)