aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/session/PHPSessionHandlerTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2018-01-13 01:02:09 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2018-01-26 22:49:13 +0100
commit45da5815517c408bafed6b3744766860afdcd7b8 (patch)
treebbb923551aa254d65bde3fa240194a02c10557d4 /tests/phpunit/includes/session/PHPSessionHandlerTest.php
parent707c74227c02a4f3d6332d8439eb1788cb801790 (diff)
downloadmediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.tar.gz
mediawikicore-45da5815517c408bafed6b3744766860afdcd7b8.zip
Use ::class to resolve class names in tests
This helps to find renamed or misspelled classes earlier. Phan will check the class names Change-Id: Ie541a7baae10ab6f5c13f95ac2ff6598b8f8950c
Diffstat (limited to 'tests/phpunit/includes/session/PHPSessionHandlerTest.php')
-rw-r--r--tests/phpunit/includes/session/PHPSessionHandlerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/session/PHPSessionHandlerTest.php b/tests/phpunit/includes/session/PHPSessionHandlerTest.php
index 0a2e84e11a45..54a31b53bd96 100644
--- a/tests/phpunit/includes/session/PHPSessionHandlerTest.php
+++ b/tests/phpunit/includes/session/PHPSessionHandlerTest.php
@@ -109,7 +109,7 @@ class PHPSessionHandlerTest extends MediaWikiTestCase {
$reset[] = $this->getResetter( $rProp );
$this->setMwGlobals( [
- 'wgSessionProviders' => [ [ 'class' => 'DummySessionProvider' ] ],
+ 'wgSessionProviders' => [ [ 'class' => \DummySessionProvider::class ] ],
'wgObjectCacheSessionExpiry' => 2,
] );