/**
  * @inheritdoc
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $action = $input->getArgument('action');
     $number = $input->getArgument('number');
     $kicked = $this->manager->kick($action, $number);
     $output->writeln(sprintf('Kicked <info>%d</info> buried <info>%s</info> job(s)', $kicked, $action));
 }
 public function testKick()
 {
     $action = 'test';
     $max = 10;
     $kicked = 5;
     $this->pheanstalk->expects($this->once())->method('useTube')->with($action);
     $this->pheanstalk->expects($this->once())->method('kick')->with($max)->will($this->returnValue($kicked));
     $this->assertEquals($kicked, $this->manager->kick($action, $max));
 }