/** * Destroys the environment once the final test is done */ public static function tearDownAfterClass() { global $wpdb; if (self::$db_has_transactions) { $wpdb->query('ROLLBACK'); } self::$lss = null; }