isExpired() public method

Tells if this cookie is expired and will be removed in the user agent when it received the response containing this cookie.
public isExpired ( ) : boolean
return boolean True if this cookie is expired
 /**
  * @test
  */
 public function isExpiredTellsIfTheCookieIsExpired()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertFalse($cookie->isExpired());
     $cookie->expire();
     $this->assertTrue($cookie->isExpired());
     $cookie = new Cookie('foo', 'bar', 500);
     $this->assertTrue($cookie->isExpired());
 }