protected function configure() { $this->namespace = 'phpunit'; $this->name = 'init'; $this->briefDescription = 'Prepare files and dirs needed for phpunit'; $this->detailedDescription = <<<EOF EOF; parent::configure(); }
/** * @see sfTask */ protected function configure() { parent::configure(); $this->addArguments(array(new sfCommandArgument('application', sfCommandArgument::REQUIRED, 'Application that will be used to load configuration before running tests'), new sfCommandArgument('module', sfCommandArgument::REQUIRED, 'Module which should be tested'))); $this->addOptions(array(new sfCommandOption('env', 'e', sfCommandOption::PARAMETER_REQUIRED, 'Environment that will be used to load configuration before running tests', 'test'))); $this->namespace = 'phpunit'; $this->name = 'create-functional'; $this->briefDescription = 'Creates a functional test class of a module for PHPUnit testing'; $this->detailedDescription = <<<EOF The [phpunit:create-functional] task creates a functional test class of a module for PHPUnit testing EOF; }
/** * @see sfTask */ protected function configure() { parent::configure(); $this->addArguments(array(new sfCommandArgument('className', sfCommandArgument::REQUIRED, 'The generated class name'), new sfCommandArgument('targetDir', sfCommandArgument::OPTIONAL, 'The path where generate the testcase class', null))); $this->addOptions(array(new sfCommandOption('source', null, sfCommandOption::PARAMETER_OPTIONAL, 'The template name that will be used for rendering', 'unit/TestCase.tpl'), new sfCommandOption('parentName', null, sfCommandOption::PARAMETER_OPTIONAL, 'The parent class name', 'sfBasePhpunitTestCase'), new sfCommandOption('fixtureType', null, sfCommandOption::PARAMETER_OPTIONAL, 'The fixtures type that can be used in this test', null))); $this->namespace = 'phpunit'; $this->name = 'create'; $this->briefDescription = 'Creates a stub testcase class'; $this->detailedDescription = <<<EOF The [phpunit:create-functional] task creates a test class of a module for PHPUnit testing EOF; }
/** * @see sfTask */ protected function configure() { parent::configure(); $this->addArguments(array(new sfCommandArgument('application', sfCommandArgument::REQUIRED, 'Application that will be used to load configuration before running tests'))); $this->addOptions(array(new sfCommandOption('type', null, sfCommandOption::PARAMETER_REQUIRED, 'Model type (propel,doctrine)', 'propel'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'Environment that will be used to load configuration before running tests', 'test'), new sfCommandOption('target', null, sfCommandOption::PARAMETER_REQUIRED, 'The location where to save the tests (inside test directory)', 'models'), new sfCommandOption('file_suffix', null, sfCommandOption::PARAMETER_REQUIRED, 'File suffix/extension, only needed if type option is not defined', ''), new sfCommandOption('skip_methods', null, sfCommandOption::PARAMETER_OPTIONAL, 'List of methods to skip (multiple methods separated by comma)', ''), new sfCommandOption('class', 'c', sfCommandOption::PARAMETER_OPTIONAL, 'The class', ''))); $this->namespace = 'phpunit'; $this->name = 'create-models'; $this->briefDescription = 'Creates a stub class of a lib/model class for PHPUnit testing'; $this->detailedDescription = <<<EOF The [phpunit:create] task creates a stub class of a lib/model Class to be used by PHPUnit testing EOF; }