Пример #1
0
 public function testTimeout()
 {
     $command = new Command('asd', true, 0.1);
     $this->assertEquals(0.1, $command->getTimeout());
     $this->assertTrue($command->isRequired());
     $this->assertEquals('asd', $command->getCommand());
 }
Пример #2
0
 /**
  * @param Command $command
  * @param string  $info
  */
 protected function info($command, $info)
 {
     $this->output->writeln(sprintf('<info>%s:</info> %s', $info, $command->getCommand()));
 }