65 foreach ( $this->parsers as $parser ) {
66 $currentResult = $parser->$name( ...
$args );
67 if ( count( $results ) > 0 ) {
68 if ( is_object( $lastResult ) ) {
69 if ( $lastResult != $currentResult ) {
73 if ( $lastResult !== $currentResult ) {
78 $results[] = $currentResult;
79 $lastResult = $currentResult;
82 if ( count( $results ) == 2 ) {
84 foreach ( $this->parsers as $i => $parser ) {
85 $resultsList[] = var_export( $results[$i],
true );
87 $diff =
wfDiff( $resultsList[0], $resultsList[1] );
89 $diff =
'[too many parsers]';
91 $msg =
"ParserDiffTest: results mismatch on call to $name\n";
92 if ( !$this->shortOutput ) {
95 $msg .=
'Results: ' . $this->
formatArray( $results ) .
"\n" .