/** * @expectedException \Stomp\Exception\StompException */ public function testReadFrameThrowsExceptionIfNotConnected() { $connection = new Connection('tcp://localhost'); $connection->readFrame(); }
/** * Read response frame from server * * @return Frame|false when no frame to read */ public function readFrame() { return array_shift($this->unprocessedFrames) ?: $this->connection->readFrame(); }