public function __destruct() { setcookie('IgnaszakRegistry', serialize($this->registryArray), time() + Conf::getCookieLife(), Conf::getCookiePath()); }
public function testCookieLife() { Conf::setCookieLife(1234); $this->assertEquals(1234, Conf::getCookieLife()); }