/**
  * Tests Stomp->unsubscribe()
  */
 public function testUnsubscribe()
 {
     $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server");
     if (!$this->Stomp->isConnected()) {
         $this->Stomp->connect();
     }
     $this->Stomp->subscribe($this->queue);
     $this->assertTrue($this->Stomp->unsubscribe($this->queue));
 }
 /**
  * Tests Stomp->connect()
  */
 public function testFailoverConnect()
 {
     $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server");
     $this->assertTrue($this->Stomp->connect());
 }
 protected function consume()
 {
     $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server");
     $consumer2 = new Stomp\Connection($this->broker);
     $consumer2->sync = false;
     $consumer2->clientId = "test";
     $consumer2->setReadTimeout(1);
     $consumer2->connect("system", "manager");
     $consumer2->subscribe($this->topic);
     $frame = $consumer2->readFrame();
     $this->assertEquals($frame->body, "test message");
     if ($frame != null) {
         $consumer2->ack($frame);
     }
     $consumer2->disconnect();
 }