Neos\Flow\ResourceManagement\Streams\StreamWrapperAdapter::stream_read PHP Метод

stream_read() публичный Метод

This method is called in response to fread() and fgets(). Note: Remember to update the read/write position of the stream (by the number of bytes that were successfully read).
public stream_read ( integer $count ) : string
$count integer How many bytes of data from the current position should be returned.
Результат string If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string.
    public function stream_read($count)
    {
        return $this->streamWrapper->read($count);
    }

Usage Example

 /**
  * @test
  */
 public function stream_readTest()
 {
     $count = 123;
     $this->mockStreamWrapper->expects($this->once())->method('read')->with($count)->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->stream_read($count));
 }