aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php')
-rw-r--r--tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
index 2aea700abe13..309b955baa68 100644
--- a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
+++ b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
@@ -13,10 +13,7 @@ class HTMLCheckMatrixTest extends MediaWikiUnitTestCase {
protected function setUp(): void {
parent::setUp();
$htmlForm = $this->createMock( HTMLForm::class );
- $htmlForm->method( 'msg' )
- ->willReturnCallback( static function ( ...$args ) {
- return call_user_func_array( 'wfMessage', $args );
- } );
+ $htmlForm->method( 'msg' )->willReturnCallback( 'wfMessage' );
$this->defaultOptions['parent'] = $htmlForm;
}