From 81dbee82c922a127260d91b73e8f288c0027cf14 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Wed, 18 Mar 2015 09:57:48 -0600 Subject: [PATCH] Fix PHPUnit provider name MathCoverageTest::testProvider -> MathCoverageTest::provideCoverage 'test*' reserved for PHPUnit tests and have to make assertions. Change-Id: If46684eb27a2282b4cd6261bd0a19dba9bc20e27 --- tests/MathCoverageTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MathCoverageTest.php b/tests/MathCoverageTest.php index 7b01c1e..f02c52e 100644 --- a/tests/MathCoverageTest.php +++ b/tests/MathCoverageTest.php @@ -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' ) ); }