aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/HtmlTest.php
diff options
context:
space:
mode:
authorReedy <reedy@wikimedia.org>2022-01-05 01:41:28 +0000
committerReedy <reedy@wikimedia.org>2022-02-24 12:55:25 +0000
commit12aae45101ea2a66d40f33f3117ca856154f7b0c (patch)
tree099391af399e40f75555ff1dc6c7e8e26d95893f /tests/phpunit/includes/HtmlTest.php
parent8016d7262f12e88e6ab221aea645f1b0be29bccc (diff)
downloadmediawikicore-12aae45101ea2a66d40f33f3117ca856154f7b0c.tar.gz
mediawikicore-12aae45101ea2a66d40f33f3117ca856154f7b0c.zip
tests: Replace some usages of Wikimedia\(suppress|restore)Warnings()
Change-Id: I361fde0de7f4406bce6ed075ed397effa5be3359
Diffstat (limited to 'tests/phpunit/includes/HtmlTest.php')
-rw-r--r--tests/phpunit/includes/HtmlTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php
index d70c21900d02..f8aef77c8814 100644
--- a/tests/phpunit/includes/HtmlTest.php
+++ b/tests/phpunit/includes/HtmlTest.php
@@ -1,5 +1,7 @@
<?php
+use Wikimedia\AtEase\AtEase;
+
class HtmlTest extends MediaWikiIntegrationTestCase {
private $restoreWarnings;
@@ -69,7 +71,7 @@ class HtmlTest extends MediaWikiIntegrationTestCase {
protected function tearDown(): void {
if ( $this->restoreWarnings ) {
$this->restoreWarnings = false;
- Wikimedia\restoreWarnings();
+ AtEase::restoreWarnings();
}
parent::tearDown();
@@ -868,7 +870,7 @@ class HtmlTest extends MediaWikiIntegrationTestCase {
*/
public function testInlineScript( $code, $expected, $error = false ) {
if ( $error ) {
- Wikimedia\suppressWarnings();
+ AtEase::suppressWarnings();
$this->restoreWarnings = true;
}
$this->assertSame( $expected, Html::inlineScript( $code ) );