コード例 #1
0
ファイル: ProducerTest.php プロジェクト: lightster/hodor
 /**
  * @covers ::__construct
  * @covers ::beginBatch
  * @covers ::discardBatch
  * @expectedException Exception
  */
 public function testANewBatchCanBeStartedAfterABatchHasAlreadyBeenDiscarded()
 {
     $this->producer->beginBatch();
     $this->producer->discardBatch();
     $this->producer->beginBatch();
     $this->producer->getQueue('some-queue-name')->push(1);
     $consumer = $this->adapter_factory->getConsumer('some-queue-name');
     $consumer->consumeMessage(function () {
     });
 }
コード例 #2
0
 public function beginBatch()
 {
     $this->producer->beginBatch();
 }