public function configure() { parent::configure(); $this->addArguments(array(new sfCommandArgument('fixture', sfCommandArgument::REQUIRED | sfCommandArgument::IS_ARRAY, 'Specify the test fixtures to load, similarly to calling $this->loadFixture(...) in a test case.'))); $this->addOptions(array(new sfCommandOption('plugin', null, sfCommandOption::PARAMETER_REQUIRED, 'Specify the plugin that owns the fixture files. This value can be overridden by prepending the plugin name and a colon to each fixture file path.'), new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'Specify the application configuration.', $this->getFirstApplication()), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, sprintf('Specify the environment. Any value other than "%s" will require confirmation.', self::DEFAULT_ENV), self::DEFAULT_ENV), new sfCommandOption('rebuild', null, sfCommandOption::PARAMETER_NONE, 'Rebuild the database before loading test fixtures. This requires confirmation.'), new sfCommandOption('no-confirmation', null, sfCommandOption::PARAMETER_NONE, 'Suppress confirmation prompts.'))); $this->name = 'load-fixture'; $this->briefDescription = 'Loads test data fixtures into the database.'; $this->detailedDescription = <<<END Loads test data fixtures into the database. Use this to load test data for spikes or to view the results of test scenarios in a browser. END; }
public function configure() { parent::configure(); $this->addOptions(array(new sfCommandOption('token', null, sfCommandOption::PARAMETER_REQUIRED | sfCommandOption::IS_ARRAY, 'Specify custom token names/values in key:value format (e.g., "PACKAGE:MyAwesomeProject").'), new sfCommandOption('verbose', 'v', sfCommandOption::PARAMETER_NONE, 'If set, additional (mostly debugging) information will be output.'))); }
public function configure() { parent::configure(); $this->addOptions(array(new sfCommandOption('filter', 'f', sfCommandOption::PARAMETER_REQUIRED, 'Regex used to filter tests; only tests matching the filter will be run.', null), new sfCommandOption('groups', 'g', sfCommandOption::PARAMETER_REQUIRED, 'Only run tests from the specified group(s).', null), new sfCommandOption('plugin', 'p', sfCommandOption::PARAMETER_REQUIRED, 'Run tests for the specified plugin.', null), new sfCommandOption('verbose', 'v', sfCommandOption::PARAMETER_NONE, 'If set, PHPUnit will output additional information (e.g. test names).', null), new sfCommandOption('stop-on-fail', null, sfCommandOption::PARAMETER_NONE, 'If set, stop on the first failure or error.', null))); }