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