diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiTestCase.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiTestCase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index f0de8ba7da33..05ef71498f16 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -15,7 +15,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { */ protected $apiContext; - protected function setUp() { + protected function setUp() : void { global $wgServer; parent::setUp(); @@ -36,7 +36,7 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { $this->apiContext = new ApiTestContext(); } - protected function tearDown() { + protected function tearDown() : void { // Avoid leaking session over tests MediaWiki\Session\SessionManager::getGlobalSession()->clear(); |