Пример #1
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));
     }
 }