Definition at line 5 of file SetCookieTest.php.
◆ it_creates_long_living_cookies()
Dflydev\FigCookies\SetCookieTest::it_creates_long_living_cookies |
( |
| ) |
|
◆ it_expires_cookies()
Dflydev\FigCookies\SetCookieTest::it_expires_cookies |
( |
| ) |
|
◆ it_parses_from_set_cookie_string()
Dflydev\FigCookies\SetCookieTest::it_parses_from_set_cookie_string |
( |
|
$cookieString, |
|
|
SetCookie |
$expectedSetCookie |
|
) |
| |
- Test:
- provideParsesFromSetCookieStringData
Definition at line 11 of file SetCookieTest.php.
13 $setCookie = SetCookie::fromSetCookieString($cookieString);
15 $this->assertEquals($expectedSetCookie, $setCookie);
16 $this->assertEquals($cookieString, (
string) $setCookie);
◆ provideParsesFromSetCookieStringData()
Dflydev\FigCookies\SetCookieTest::provideParsesFromSetCookieStringData |
( |
| ) |
|
Definition at line 19 of file SetCookieTest.php.
References Dflydev\FigCookies\SetCookie\create().
27 'someCookie=someValue',
29 ->withValue(
'someValue')
32 'LSID=DQAAAK%2FEaem_vYg; Path=/accounts; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly',
34 ->withValue(
'DQAAAK/Eaem_vYg')
35 ->withPath(
'/accounts')
36 ->withExpires(
'Wed, 13 Jan 2021 22:23:01 GMT')
41 'HSID=AYQEVn%2F.DKrdst; Domain=.foo.com; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly',
43 ->withValue(
'AYQEVn/.DKrdst')
44 ->withDomain(
'.foo.com')
46 ->withExpires(
'Wed, 13 Jan 2021 22:23:01 GMT')
50 'SSID=Ap4P%2F.GTEq; Domain=foo.com; Path=/; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly',
52 ->withValue(
'Ap4P/.GTEq')
53 ->withDomain(
'foo.com')
55 ->withExpires(
'Wed, 13 Jan 2021 22:23:01 GMT')
60 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Expires=Tue, 15 Jan 2013 21:47:38 GMT; HttpOnly',
62 ->withValue(
'Rg3vHJZnehYLjVg7qi3bZjzg')
63 ->withExpires(
'Tue, 15-Jan-2013 21:47:38 GMT')
65 ->withDomain(
'.example.com')
69 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Max-Age=500; Secure; HttpOnly',
71 ->withValue(
'Rg3vHJZnehYLjVg7qi3bZjzg')
74 ->withDomain(
'.example.com')
79 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Expires=Tue, 15 Jan 2013 21:47:38 GMT; Max-Age=500; Secure; HttpOnly',
81 ->withValue(
'Rg3vHJZnehYLjVg7qi3bZjzg')
82 ->withExpires(
'Tue, 15-Jan-2013 21:47:38 GMT')
85 ->withDomain(
'.example.com')
90 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Expires=Tue, 15 Jan 2013 21:47:38 GMT; Max-Age=500; Secure; HttpOnly',
92 ->withValue(
'Rg3vHJZnehYLjVg7qi3bZjzg')
93 ->withExpires(1358286458)
96 ->withDomain(
'.example.com')
101 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Expires=Tue, 15 Jan 2013 21:47:38 GMT; Max-Age=500; Secure; HttpOnly',
103 ->withValue(
'Rg3vHJZnehYLjVg7qi3bZjzg')
104 ->withExpires(
new \
DateTime(
'Tue, 15-Jan-2013 21:47:38 GMT'))
107 ->withDomain(
'.example.com')
static create($name, $value=null)
The documentation for this class was generated from the following file: