Beispiel #1
0
 public function testDeterminesIfExpired()
 {
     $c = new Cookie();
     $c->setExpires(10);
     $this->assertTrue($c->isExpired());
     $c->setExpires(time() + 10000);
     $this->assertFalse($c->isExpired());
 }