code: private function setUp()
      {
          if (!$this->config->has('purifier')) {
              throw new Exception('Configuration parameters not loaded!');
          }
  
          $this->checkCacheDirectory();
  
          // Create a new configuration object
          $config = $this->getConfig();
  
          // Create HTMLPurifier object
          $this->purifier = new HTMLPurifier($config);
      }
docs: Setup
  
  @throws Exception