Merge "Unify Special:Contribs/DeletedContribs subtitle implementation"
[lhc/web/wiklou.git] / includes / session / PHPSessionHandler.php
index 93b0b36..695ce5a 100644 (file)
@@ -111,6 +111,12 @@ class PHPSessionHandler implements \SessionHandlerInterface {
                        return;
                }
 
+               // @codeCoverageIgnoreStart
+               if ( defined( 'MW_NO_SESSION_HANDLER' ) ) {
+                       throw new \BadMethodCallException( 'MW_NO_SESSION_HANDLER is defined' );
+               }
+               // @codeCoverageIgnoreEnd
+
                self::$instance = new self( $manager );
 
                // Close any auto-started session, before we replace it