mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-02 19:26:36 +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.
|
* Loops over all test cases provided by the provider function.
|
||||||
* Compares each the rendering result of each input with the expected output.
|
* Compares each the rendering result of each input with the expected output.
|
||||||
* @dataProvider testProvider
|
* @dataProvider provideCoverage
|
||||||
*/
|
*/
|
||||||
public function testCoverage( $input, $output )
|
public function testCoverage( $input, $output )
|
||||||
{
|
{
|
||||||
|
@ -79,7 +79,7 @@ class MathCoverageTest extends MediaWikiTestCase {
|
||||||
* Gets the test-data from the file ParserTest.json
|
* 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
|
* @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' ) );
|
return json_decode( file_get_contents( __DIR__ . '/ParserTest.json' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue