64 foreach ( $this->parsers as
$parser ) {
66 if ( count( $results ) > 0 ) {
67 if ( is_object( $lastResult ) ) {
68 if ( $lastResult != $currentResult ) {
72 if ( $lastResult !== $currentResult ) {
77 $results[] = $currentResult;
78 $lastResult = $currentResult;
81 if ( count( $results ) == 2 ) {
83 foreach ( $this->parsers as $i =>
$parser ) {
84 $resultsList[] = var_export( $results[$i],
true );
86 $diff =
wfDiff( $resultsList[0], $resultsList[1] );
88 $diff =
'[too many parsers]';
90 $msg =
"ParserDiffTest: results mismatch on call to $name\n";
91 if ( !$this->shortOutput ) {
94 $msg .=
'Results: ' . $this->
formatArray( $results ) .
"\n" .