gzip,deflate [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 DOCUMENT_ROOT] => /var/www/ [SCRIPT_FILENAME] => /var/www/tests/index.php */ $request = new phpbb_mock_request(array(), array(), array(), $server); // Set no user and trick a bit to circumvent errors $user = new phpbb_user(); $user->lang = true; $user->browser = $server['HTTP_USER_AGENT']; $user->referer = ''; $user->forwarded_for = ''; $user->host = $server['HTTP_HOST']; $user->page = phpbb_session::extract_current_page($phpbb_root_path); } protected function tearDown() { global $user; $user = NULL; } }