Esempio n. 1
0
 /**
  * @test
  */
 public function acks()
 {
     $message = Message::create('lus');
     $this->ed->expects($this->once())->method('dispatch')->with(Events::ACK, $this->isInstanceOf('Pekkis\\Queue\\SymfonyBridge\\MessageEvent'));
     $this->innerqueue->expects($this->once())->method('ack')->with($message)->will($this->returnValue(true));
     $ret = $this->queue->ack($message);
     $this->assertTrue($ret);
 }