6 public static function suite( $className ) {
13 $interpreter = $this->
getEngine()->getInterpreter();
14 $func = $interpreter->wrapPhpFunction(
function ( $v ) {
15 return [ preg_replace(
'/\s+/',
' ', trim( var_export( $v, 1 ) ) ) ];
17 $interpreter->callFunction(
18 $interpreter->loadString(
'mw.var_export = ...',
'fortest' ), $func
23 return parent::getTestModules() + [
24 'StandaloneTests' => __DIR__ .
'/StandaloneTests.lua',