/** * Tests Stomp->begin() */ public function testBegin() { $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server"); // TODO Auto-generated StompTest->testBegin() $this->markTestIncomplete("begin test not implemented"); $this->Stomp->begin(); }
/** * Tests Stomp->abort() */ public function testAbort() { $this->markTestIncomplete("This test doesn't use mocks, it tries to talk to a STOMP server"); $this->Stomp->setReadTimeout(1); if (!$this->Stomp->isConnected()) { $this->Stomp->connect(); } $this->Stomp->begin("tx1"); $this->assertTrue($this->Stomp->send($this->queue, 'testSend', array("transaction" => "tx1"))); $this->Stomp->abort("tx1"); $this->Stomp->subscribe($this->queue); $frame = $this->Stomp->readFrame(); $this->assertFalse($frame); $this->Stomp->unsubscribe($this->queue); $this->Stomp->disconnect(); }