/** * 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)); }
protected function subscribe() { $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server"); $consumer = new Stomp\Connection($this->broker); $consumer->sync = false; $consumer->clientId = "test"; $consumer->connect("system", "manager"); $consumer->subscribe($this->topic); $consumer->unsubscribe($this->topic); $consumer->disconnect(); }