public function testIsExpiredChecksExpires() { $cookie = new Cookie(); $cookie->setAttribute('expires', date('r', strtotime('+1 week'))); $this->assertFalse($cookie->isExpired()); $cookie = new Cookie(); $cookie->setAttribute('expires', date('r', strtotime('-1 month'))); $this->assertTrue($cookie->isExpired()); }