/** * @covers ::__construct * @covers ::beginBatch * @covers ::discardBatch * @expectedException Exception */ public function testPublishingABatchAfterItWasAlreadyDiscardedThrowsAnException() { $this->producer->beginBatch(); $this->producer->publishBatch(); $this->producer->discardBatch(); }
public function publishBatch() { $this->producer->publishBatch(); }