public getMaximumAge ( ) : integer | ||
return | integer | The maximum age in seconds, or NULL if none has been defined. |
public function getMaximumAge()
{
return $this->maximumAge;
}
/** * @test */ public function getMaximumAgeReturnsTheMaximumAge() { $cookie = new Cookie('foo', 'bar'); $this->assertSame(null, $cookie->getMaximumAge()); $cookie = new Cookie('foo', 'bar', 0, 120); $this->assertSame(120, $cookie->getMaximumAge()); }