65 foreach ( $this->parsers as $i =>
$parser ) {
66 $currentResult = call_user_func_array( [ &$this->parsers[$i], $name ],
$args );
70 if ( is_object( $lastResult ) ) {
71 if ( $lastResult != $currentResult ) {
75 if ( $lastResult !== $currentResult ) {
80 $results[$i] = $currentResult;
81 $lastResult = $currentResult;
84 if ( count( $results ) == 2 ) {
86 foreach ( $this->parsers as $i =>
$parser ) {
87 $resultsList[] = var_export( $results[$i],
true );
89 $diff =
wfDiff( $resultsList[0], $resultsList[1] );
91 $diff =
'[too many parsers]';
93 $msg =
"ParserDiffTest: results mismatch on call to $name\n";
94 if ( !$this->shortOutput ) {
97 $msg .=
'Results: ' . $this->
formatArray( $results ) .
"\n" .