getExpires() public method

Note that this date / time is returned as a unix timestamp, no matter what the format was originally set through the constructor of this Cookie. The special case "no expiration time" is returned in form of a zero value.
public getExpires ( ) : integer
return integer A unix timestamp or 0
 /**
  * @test
  */
 public function getExpiresAlwaysReturnsAUnixTimestamp()
 {
     $cookie = new Cookie('foo', 'bar', 1345110803);
     $this->assertSame(1345110803, $cookie->getExpires());
     $cookie = new Cookie('foo', 'bar', \DateTime::createFromFormat('U', 1345110803));
     $this->assertSame(1345110803, $cookie->getExpires());
     $cookie = new Cookie('foo', 'bar');
     $this->assertSame(0, $cookie->getExpires());
 }