Esempio n. 1
0
 public function parse($string)
 {
     $cookie = new Cookie('', '');
     $cookie->parse($string);
     $this->add($cookie);
 }
Esempio n. 2
0
 public function testParse()
 {
     $this->object->parse('foo=bar; Expires=Fri, 01-Apr-2011 00:00:00 GMT; Path=/user/; Domain=testing.com; Secure; HttpOnly;');
     $cookie = new Cookie('foo', 'bar', new \DateTime('01-Apr-2011 00:00:00 GMT'), '/user/', 'testing.com', true, true);
     $this->assertEquals($cookie, $this->object);
 }