Exemplo n.º 1
0
 public function testCreateCommand()
 {
     $name = 'test_base_command';
     $description = 'test for base command creation';
     $keywords = 'base commands creation test';
     $arguments = 'arguments';
     $options = 'options';
     $expected = array($name, $description, $keywords, $arguments, $options);
     $baseCommand = new BaseCommand($name, $description, $keywords, $arguments, $options);
     $results = array($baseCommand->getName(), $baseCommand->getDescription(), $baseCommand->getKeywords(), $baseCommand->getArguments(), $baseCommand->getOptions());
     $this->assertEquals($expected, $results);
 }
Exemplo n.º 2
0
 public function __construct($name = null, $description = '', $keywords = '', $arguments = null, $options = null)
 {
     parent::__construct($name, $description, $keywords, $arguments, $options);
     $this->defineArguments();
 }