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

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

This method is called in response to fflush(). If you have cached data in your stream but not yet stored it into the underlying storage, you should do so now. Note: If not implemented, FALSE is assumed as the return value.
public stream_flush ( ) : boolean
Результат boolean Should return TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored.
    public function stream_flush()
    {
        return $this->streamWrapper->flush();
    }

Usage Example

 /**
  * @test
  */
 public function stream_flushTest()
 {
     $this->mockStreamWrapper->expects($this->once())->method('flush')->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->stream_flush());
 }