This adapter provides basic support for write, read and delete cookie handling, as well as allowing these three methods to be filtered as per the Lithium filtering system.
Inheritance: extends lithium\core\Object
 public function testBadWrite()
 {
     $cookie = new Cookie(array('expire' => null));
     $this->assertNull($cookie->write('bad', 'val'));
 }
Example #2
0
 public function testCustomCookieName()
 {
     $Cookie = new Cookie(array('name' => 'test'));
     $this->assertEqual('test', $Cookie->key());
 }