Ejemplo n.º 1
0
 public function testDoNotRetryGenericException()
 {
     $this->setExpectedException('Exception');
     $command = new stdClass();
     $this->commandBus->expects($this->at(0))->method('dispatch')->with($this->identicalTo($command))->will($this->throwException(new Exception('Generic')));
     $gateway = $this->createGateway();
     $gateway->send($command);
 }