示例#1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testUnsubscribeWillThrowExceptionIfGivenIdIsNotActive()
 {
     $client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->setMethods(['getProtocol', 'sendFrame', 'readFrame'])->getMock();
     /**
      * @var $client Client
      */
     $stateful = new StatefulStomp($client);
     $consumerState = new ConsumerState($client, $stateful);
     $consumerState->unsubscribe('not-existing');
 }
 /**
  * @inheritdoc
  */
 public function abort()
 {
     $this->transactionAbort();
     $this->setState(new ConsumerState($this->getClient(), $this->getBase()), parent::getOptions());
 }