예제 #1
0
파일: Stomp.php 프로젝트: phpwutz/stomp-php
 /**
  * Connection has data to read.
  *
  * @return boolean
  * @deprecated use $client->getConnection()
  */
 public function hasFrameToRead()
 {
     return $this->connection->hasDataToRead();
 }
예제 #2
0
 /**
  * @expectedException \Stomp\Exception\StompException
  */
 public function testHasDataToReadThrowsExceptionIfNotConnected()
 {
     $connection = new Connection('tcp://localhost');
     $connection->hasDataToRead();
 }