コード例 #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));
     }
 }
コード例 #2
0
 public function test_phpunit_config()
 {
     $this->fs->savePhpUnitConfig('<phpunit/>');
     $this->assertTrue(file_exists($this->root->url() . '/.smartrunner/phpunit.xml.dist'));
 }