* Remove last character if it is a newline
* @group utility
* @param string $s
+ * @return string
*/
public static function chomp( $s ) {
if ( substr( $s, -1 ) === "\n" ) {
/**
* Get an input dictionary from a set of parser test files
* @param array $filenames
+ * @return string
*/
function getFuzzInput( $filenames ) {
$dict = '';
/**
* Get a memory usage breakdown
+ * @return array
*/
function getMemoryBreakdown() {
$memStats = array();
/**
* Refactored in 1.22 to use ParserTestResult
* @param ParserTestResult $testResult
+ * @return bool
*/
function showTestResult( ParserTestResult $testResult ) {
if ( $testResult->isSuccess() ) {
* @param string $key Name of option val to retrieve
* @param array $opts Options array to look in
* @param mixed $default Default value returned if not found
+ * @return mixed
*/
private static function getOptionValue( $key, $opts, $default ) {
$key = strtolower( $key );
* Ideally this should replace the global configuration entirely.
* @param string $opts
* @param string $config
+ * @return RequestContext
*/
private function setupGlobals( $opts = '', $config = '' ) {
global $IP;
/**
* List of temporary tables to create, without prefix.
* Some of these probably aren't necessary.
+ * @return array
*/
private function listTables() {
$tables = array( 'user', 'user_properties', 'user_former_groups', 'page', 'page_restrictions',