public static function tearDownAfterClass() { $genPath = Di::getDefault()->get('config')->get('global', 'centreon_generate_tmp_dir'); if ($genPath != "" && is_dir($genPath)) { Directory::delete($genPath, true); } parent::tearDownAfterClass(); }