예제 #1
0
 function it_can_remove_jobs(ConsumableQueue $metro)
 {
     $metro->remove('123')->shouldBeCalled();
     $output = $this->execute(['job-id' => '123']);
     expect($output->fetch())->toEqual('');
 }
예제 #2
0
파일: RmCommand.php 프로젝트: metro-q/metro
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $jobId = $input->getArgument('job-id');
     $this->metro->remove($jobId);
 }