Merge "Add @var annotations to XmlTypeCheck class"
[lhc/web/wiklou.git] / tests / phpunit / includes / session / TestUtils.php
index 5db1ad0..1d87c90 100644 (file)
@@ -78,18 +78,13 @@ class TestUtils {
        /**
         * If you need a Session for testing but don't want to create a backend to
         * construct one, use this.
-        * @param object $backend Object to serve as the SessionBackend
+        * @param object|null $backend Object to serve as the SessionBackend
         * @param int $index
-        * @param LoggerInterface $logger
+        * @param LoggerInterface|null $logger
         * @return Session
         */
        public static function getDummySession( $backend = null, $index = -1, $logger = null ) {
                $rc = new \ReflectionClass( Session::class );
-               if ( !method_exists( $rc, 'newInstanceWithoutConstructor' ) ) {
-                       \PHPUnit_Framework_Assert::markTestSkipped(
-                               'ReflectionClass::newInstanceWithoutConstructor isn\'t available'
-                       );
-               }
 
                if ( $backend === null ) {
                        $backend = new DummySessionBackend;