/**
  * Test get logout reason cookie
  * @return void
  */
 public function testGetLogoutReasonCookie()
 {
     $cookie = '123';
     $this->cookieReaderMock->expects($this->once())->method('getCookie')->with(SecurityCookie::LOGOUT_REASON_CODE_COOKIE_NAME, -1)->willReturn($cookie);
     $this->assertEquals(intval($cookie), $this->model->getLogoutReasonCookie());
 }
 /**
  * Retrieve a value from a cookie.
  *
  * @param string $name
  * @param string|null $default The default value to return if no value could be found for the given $name.
  * @return string|null
  */
 public function getCookie($name, $default = null)
 {
     return $this->reader->getCookie($name, $default);
 }
 /**
  * Get cookie with logout reason code
  *
  * @return string|int
  */
 public function getLogoutReasonCookie()
 {
     return (int) $this->cookieReader->getCookie(self::LOGOUT_REASON_CODE_COOKIE_NAME, -1);
 }