diff --git a/tests/phpunit/unit/ExpressionTest.php b/tests/phpunit/unit/ExpressionTest.php index 721649c0..205f0358 100644 --- a/tests/phpunit/unit/ExpressionTest.php +++ b/tests/phpunit/unit/ExpressionTest.php @@ -20,7 +20,7 @@ class ExpressionTest extends MediaWikiUnitTestCase { ); } - public function provideExpressions() { + public static function provideExpressions() { return [ [ '1 or 0', '1' ], [ 'not (1 and 0)', '1' ], @@ -90,7 +90,7 @@ class ExpressionTest extends MediaWikiUnitTestCase { $parser->doExpression( $input ); } - public function provideExpressionThrows() { + public static function provideExpressionThrows() { $longExpression = str_repeat( 'ln(', 1001 ) . '1' . str_repeat( ')', 1001 ); return [ 'Expression too long' => [ $longExpression ],