mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Fix PHPUnit provider name
MathCoverageTest::testProvider -> MathCoverageTest::provideCoverage 'test*' reserved for PHPUnit tests and have to make assertions. Change-Id: If46684eb27a2282b4cd6261bd0a19dba9bc20e27
This commit is contained in:
parent
6742dedda4
commit
81dbee82c9
|
@ -61,7 +61,7 @@ class MathCoverageTest extends MediaWikiTestCase {
|
|||
/**
|
||||
* Loops over all test cases provided by the provider function.
|
||||
* Compares each the rendering result of each input with the expected output.
|
||||
* @dataProvider testProvider
|
||||
* @dataProvider provideCoverage
|
||||
*/
|
||||
public function testCoverage( $input, $output )
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ class MathCoverageTest extends MediaWikiTestCase {
|
|||
* Gets the test-data from the file ParserTest.json
|
||||
* @return array($input, $output) where $input is the test input string and $output is the rendered html5-output string
|
||||
*/
|
||||
public function testProvider() {
|
||||
public function provideCoverage() {
|
||||
return json_decode( file_get_contents( __DIR__ . '/ParserTest.json' ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue