public function onBeforeSuite(BeforeSuiteTested $event) { $this->filesystemCleaner->clean([$this->masterPath]); if (is_dir($this->drupal->getSitePath())) { // The site exists, it doesn't need to be installed at this point. $event->stopPropagation(); } }