Example #1
0
 /**
  * Connection has data to read.
  *
  * @return boolean
  * @deprecated use $client->getConnection()
  */
 public function hasFrameToRead()
 {
     return $this->connection->hasDataToRead();
 }
 /**
  * @expectedException \Stomp\Exception\StompException
  */
 public function testHasDataToReadThrowsExceptionIfNotConnected()
 {
     $connection = new Connection('tcp://localhost');
     $connection->hasDataToRead();
 }