/**
  * Tests Stomp->send()
  */
 public function testSend()
 {
     $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server");
     if (!$this->Stomp->isConnected()) {
         $this->Stomp->connect();
     }
     $this->assertTrue($this->Stomp->send($this->queue, 'testSend'));
     $this->Stomp->subscribe($this->queue);
     $frame = $this->Stomp->readFrame();
     $this->assertEquals('testSend', $frame->body, 'Body of test frame does not match sent message');
     $this->Stomp->ack($frame);
     $this->Stomp->unsubscribe($this->queue);
 }
 public function flush()
 {
     $this->stomp->send($this->destination, $this->buffer, $this->properties);
     $this->buffer = "";
 }
 protected function produce()
 {
     $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server");
     $producer = new Stomp\Connection($this->broker);
     $producer->sync = false;
     $producer->connect("system", "manager");
     $producer->send($this->topic, "test message", array('persistent' => 'true'));
     $producer->disconnect();
 }