Esempio n. 1
0
 public function testExecute()
 {
     $message = $this->createAmqpMessageMock();
     $message->body = $body = '{"foo":"bar"}';
     $this->serializer->expects($this->once())->method('deserialize')->with($this->identicalTo($body))->will($this->returnValue($process = $this->createProcessMock()));
     $this->runner->expects($this->once())->method('run')->with($this->identicalTo($process));
     $this->consumer->execute($message);
 }