this is superceded by setting the globals to a known initial state.
if( $this->runTest(
rtrim( $data['test'] ),
rtrim( $data['input'] ),
- $this->resultTransform(rtrim( $data['result'] ) ) ) ) {
+ rtrim( $data['result'] ) ) ) {
$success++;
}
$total++;
}
}
- /**
- * Substitute simple variables to allow for slightly more
- * sophisticated tests.
- * @access private
- */
- function resultTransform($text) {
- $rep = array (
- '__SCRIPT__' => $GLOBALS['wgScript']
- );
- $text = str_replace(array_keys($rep), array_values($rep), $text);
- return $text;
- }
-
/**
* @param string $input Wikitext to try rendering
* @param string $result Result to output