X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsession%2FTestUtils.php;h=f1dc9e994b86b8db65a48c20d1ee7fb27fcff605;hb=f826f2f5f6facdce2c92dcb9e70bb0cf20ff9db0;hp=36175af26f558b28c6f5250ed684d96f0c5e5aa5;hpb=58cb1f824ac75c3b58ba19d1e88c1b38f9dc1fab;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/session/TestUtils.php b/tests/phpunit/includes/session/TestUtils.php index 36175af26f..f1dc9e994b 100644 --- a/tests/phpunit/includes/session/TestUtils.php +++ b/tests/phpunit/includes/session/TestUtils.php @@ -18,15 +18,15 @@ class TestUtils { session_write_close(); $rInstance = new \ReflectionProperty( - 'MediaWiki\\Session\\SessionManager', 'instance' + SessionManager::class, 'instance' ); $rInstance->setAccessible( true ); $rGlobalSession = new \ReflectionProperty( - 'MediaWiki\\Session\\SessionManager', 'globalSession' + SessionManager::class, 'globalSession' ); $rGlobalSession->setAccessible( true ); $rGlobalSessionRequest = new \ReflectionProperty( - 'MediaWiki\\Session\\SessionManager', 'globalSessionRequest' + SessionManager::class, 'globalSessionRequest' ); $rGlobalSessionRequest->setAccessible( true ); @@ -62,7 +62,7 @@ class TestUtils { * fields necessary. */ public static function getDummySessionBackend() { - $rc = new \ReflectionClass( 'MediaWiki\\Session\\SessionBackend' ); + $rc = new \ReflectionClass( SessionBackend::class ); if ( !method_exists( $rc, 'newInstanceWithoutConstructor' ) ) { \PHPUnit_Framework_Assert::markTestSkipped( 'ReflectionClass::newInstanceWithoutConstructor isn\'t available' @@ -83,7 +83,7 @@ class TestUtils { * @return Session */ public static function getDummySession( $backend = null, $index = -1, $logger = null ) { - $rc = new \ReflectionClass( 'MediaWiki\\Session\\Session' ); + $rc = new \ReflectionClass( Session::class ); if ( !method_exists( $rc, 'newInstanceWithoutConstructor' ) ) { \PHPUnit_Framework_Assert::markTestSkipped( 'ReflectionClass::newInstanceWithoutConstructor isn\'t available'