Predis\Connection\WebdisConnection::read PHP Méthode

read() public méthode

public read ( )
    public function read()
    {
        $this->throwNotSupportedException(__FUNCTION__);
    }

Usage Example

 /**
  * @group disconnected
  * @expectedException Predis\NotSupportedException
  * @expectedExceptionMessage The method Predis\Connection\WebdisConnection::read() is not supported
  */
 public function testReadingFromConnectionIsNotSupported()
 {
     $connection = new WebdisConnection($this->getParameters());
     $connection->read();
 }