private function mockCookie($key)
 {
     $_COOKIE[ChessRegistry::getCookieName()] = $key;
 }
Beispiel #2
0
 private static function getCookieValue()
 {
     if (isset(self::$cookieValue)) {
         return self::$cookieValue;
     }
     return isset($_COOKIE[ChessRegistry::getCookieName()]) ? $_COOKIE[ChessRegistry::getCookieName()] : null;
 }