Example #1
0
 function testDataSetInConstructor()
 {
     $data = array(1, 'b' => 'a string');
     $cookie = new T_Cage_Cookie($data);
     $this->assertSame($data, $cookie->uncage());
 }
Example #2
0
 /**
  * Destroy any saved auth data.
  *
  * @return T_Auth_Driver  fluent interface
  */
 function destroy()
 {
     $this->cookie->set($this->key, md5('hash'), time() - 42000, null, null, $this->https_only);
     return $this;
 }