Physikerwelt has submitted this change and it was merged. Change subject: Change format of the generated phpunit coverage tests ......................................................................
Change format of the generated phpunit coverage tests * Change from $test[$input] = $output to $test[] = array ($input, $output) as expected by phpunits dataProvider annotation * drawback not automatic duplicate removal Change-Id: I6a6de9e387e4d6b737bb6910d39c85c7aff25068 --- M SpecialMathDebug.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Physikerwelt: Verified; Looks good to me, approved diff --git a/SpecialMathDebug.php b/SpecialMathDebug.php index ddff598..41c0d3a 100644 --- a/SpecialMathDebug.php +++ b/SpecialMathDebug.php @@ -153,7 +153,7 @@ $parserTests= array(); foreach ( array_slice( self::getMathTagsFromPage( $page ), $offset, $length, true ) as $key => $input ) { $output = MathRenderer::renderMath( $input, array(), MW_MATH_PNG ); - $parserTests[(string) $input ]= $output; + $parserTests[ ]= array( (string) $input , $output); } $out->addHTML( serialize($parserTests) ); } -- To view, visit https://gerrit.wikimedia.org/r/112481 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I6a6de9e387e4d6b737bb6910d39c85c7aff25068 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/MathSearch Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits