20 {
21 return [
22 [
23 'someCookie=',
25 ],
26 [
27 'someCookie=someValue',
29 ->withValue('someValue')
30 ],
31 [
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')
37 ->withSecure(true)
38 ->withHttpOnly(true)
39 ],
40 [
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')
45 ->withPath('/')
46 ->withExpires('Wed, 13 Jan 2021 22:23:01 GMT')
47 ->withHttpOnly(true)
48 ],
49 [
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')
54 ->withPath('/')
55 ->withExpires('Wed, 13 Jan 2021 22:23:01 GMT')
56 ->withSecure(true)
57 ->withHttpOnly(true)
58 ],
59 [
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')
64 ->withPath('/')
65 ->withDomain('.example.com')
66 ->withHttpOnly(true)
67 ],
68 [
69 'lu=Rg3vHJZnehYLjVg7qi3bZjzg; Domain=.example.com; Path=/; Max-Age=500; Secure; HttpOnly',
71 ->withValue('Rg3vHJZnehYLjVg7qi3bZjzg')
72 ->withMaxAge(500)
73 ->withPath('/')
74 ->withDomain('.example.com')
75 ->withSecure(true)
76 ->withHttpOnly(true)
77 ],
78 [
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')
83 ->withMaxAge(500)
84 ->withPath('/')
85 ->withDomain('.example.com')
86 ->withSecure(true)
87 ->withHttpOnly(true)
88 ],
89 [
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)
94 ->withMaxAge(500)
95 ->withPath('/')
96 ->withDomain('.example.com')
97 ->withSecure(true)
98 ->withHttpOnly(true)
99 ],
100 [
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'))
105 ->withMaxAge(500)
106 ->withPath('/')
107 ->withDomain('.example.com')
108 ->withSecure(true)
109 ->withHttpOnly(true)
110 ],
111 ];
112 }
static create($name, $value=null)