/**
  * Overrides the default cookie.
  *
  * @param Flex\SessionCookie
  * @return Flex\SessionProvider
  */
 public function overrideCookie(SessionCookie $cookie)
 {
     $this->cookie = $cookie;
     session_set_cookie_params($cookie->getExpires(), $cookie->getPath(), $cookie->getDomain(), $cookie->isSecure(), $cookie->isHttpOnly());
     return $this;
 }
 public function testSetExpires()
 {
     $cookie = new SessionCookie();
     $cookie->setExpires(10);
     $this->assertAttributeEquals(time() + 10 * 60, 'expires', $cookie);
 }