/**
  * @param string $file
  * @return bool
  */
 private function isIgnoredInternal($file)
 {
     if (strpos($file, 'phar://') === 0) {
         return true;
     }
     $relative_path = $this->fs->relativePath($file);
     return $this->config->isIgnored($relative_path);
 }
 /**
  * @return Config
  */
 public function generate()
 {
     $default = Config::defaultConfig();
     $phpunit_path = $this->findPhpunit();
     if ($phpunit_path) {
         $default['phpunit'] = $phpunit_path;
     }
     return $default;
 }