С версии: 3.0.0
Автор: Henry Ruhs
Наследование: extends CommandAbstract
Пример #1
0
 /**
  * testHelp
  *
  * @since 3.0.0
  */
 public function testHelp()
 {
     /* setup */
     $this->_request->setServer('argv', ['console.php', 'help', 'help']);
     $helpCommand = new Command\Help($this->_registry, $this->_request, $this->_config);
     /* expect and actual */
     $expect = $helpCommand->getHelp();
     $actual = $helpCommand->run('cli');
     /* compare */
     $this->assertEquals($expect, $actual);
 }