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