/**
  * @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);
 }
Exemplo n.º 2
0
 public function run(array $argv = [])
 {
     $config_file = $this->fs->getConfigFile();
     if (file_exists($config_file)) {
         echo $this->fs->relativePath($config_file), " already exists.\n";
     } else {
         echo 'Creating ' . $this->fs->relativePath($config_file), ".\n";
         $this->fs->saveConfigFile($this->config_generator->generate());
     }
     $phpunit_config_file = $this->fs->getPhpunitConfigFile();
     if (file_exists($phpunit_config_file)) {
         echo $this->fs->relativePath($phpunit_config_file), " already exists.\n";
     } else {
         echo 'Creating ' . $this->fs->relativePath($phpunit_config_file), ".\n";
         $this->fs->savePhpUnitConfig($this->phpunitConfig($argv));
     }
 }