X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsession%2FTestUtils.php;h=f00de55a3089f0cf388af7e7037895c131f82494;hb=3e7d3d998a2d25927f0deb061e0c9831926c2dcf;hp=f1dc9e994b86b8db65a48c20d1ee7fb27fcff605;hpb=3bb9384aeefa055a6ef1a6446ad49ee1017389f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/session/TestUtils.php b/tests/phpunit/includes/session/TestUtils.php index f1dc9e994b..f00de55a30 100644 --- a/tests/phpunit/includes/session/TestUtils.php +++ b/tests/phpunit/includes/session/TestUtils.php @@ -12,7 +12,7 @@ class TestUtils { /** * Override the singleton for unit testing * @param SessionManager|null $manager - * @return \\ScopedCallback|null + * @return \\Wikimedia\ScopedCallback|null */ public static function setSessionManagerSingleton( SessionManager $manager = null ) { session_write_close(); @@ -45,7 +45,7 @@ class TestUtils { PHPSessionHandler::install( $manager ); } - return new \ScopedCallback( function () use ( &$reset, $oldInstance ) { + return new \Wikimedia\ScopedCallback( function () use ( &$reset, $oldInstance ) { foreach ( $reset as &$arr ) { $arr[0]->setValue( $arr[1] ); }