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