"\\'", '\\' => '\\\\' ) ); /* This used to be ucfirst( basename( dirname( $filename ) ) ) * and then was ucfirst( basename( $filename, '.txt' ) * but that didn't work with names like foo.tests.txt */ $parserTestClassName = str_replace( '.', '_', ucfirst( $testsName ) ); $parserTestClassDefinition = <<addTestSuite( $parserTestClassName ); } return $suite; } /** * Write $msg under log group 'tests-parser' * @param string $msg Message to log */ protected static function debug( $msg ) { return wfDebugLog( 'tests-parser', wfGetCaller() . ' ' . $msg ); } }