コード例 #1
0
    public function configure()
    {
        parent::configure();
        $this->name = 'all';
        $this->briefDescription = 'Runs all PHPUnit tests for the project.';
        $this->detailedDescription = <<<END
Runs all PHPUnit tests for the project.
END;
        $this->_type = '';
    }
コード例 #2
0
    public function configure()
    {
        parent::configure();
        $this->addArguments(array(new sfCommandArgument('path', sfCommandArgument::OPTIONAL | sfCommandArgument::IS_ARRAY, 'Specify the relative paths to specific test files and/or directories under sf_root_dir/test/unit.  If no arguments are provided, all unit tests will be run.', null)));
        $this->name = 'unit';
        $this->briefDescription = 'Runs all PHPUnit unit tests for the project.';
        $this->detailedDescription = <<<END
Runs PHPUnit unit tests for the project.
END;
        $this->_type = 'unit';
    }