/** * Destroy the default instance * Should only be called inside unit tests * @throws MWException * @codeCoverageIgnore */ public static function destroyDefaultInstance() { if (!defined('MW_PHPUNIT_TEST')) { throw new MWException(__METHOD__ . ' was called outside of unit tests'); } self::$self = null; }