Esempio n. 1
0
 public function _after(TestCase $test)
 {
     parent::_after($test);
     if ($this->isMultisite && $this->shouldRestoreFiles) {
         if (empty($this->config['wpRootFolder'])) {
             throw new ModuleConfigException(__CLASS__, 'WordPress root folder must be set to have multisite files replaced');
         }
         $path = $this->config['wpRootFolder'];
         $htaccessReplacer = $this->makeHtaccessReplacer($path);
         $wpconfigReplacer = $this->makeWpConfigReplacer($path);
         $htaccessReplacer->restoreOriginal();
         $wpconfigReplacer->restoreOriginal();
         $this->shouldRestoreFiles = false;
     }
 }