/** @return void */ public function tearDown() { parent::tearDown(); // Suppress "mysql_connect(): The mysql extension is deprecated [...]" foreach (\xp::$errors as $file => $errors) { if (strstr($file, 'MySQLConnection')) { unset(\xp::$errors[$file]); } } }