public function testExecuteProcessesHandlesException()
 {
     $this->registry->register('foo', $this->buildIterator(2));
     $this->scheduler->expects($this->any())->method('process')->will($this->throwException(new \Exception()));
     $input = array('--iteration' => 1);
     $command = $this->application->find('abc:scheduler:process');
     $commandTester = new CommandTester($command);
     $commandTester->execute($input);
 }
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetThrowsInvalidArgumentException()
 {
     $this->subject->get('foo');
 }