Neos\Flow\ResourceManagement\Streams\StreamWrapperAdapter::stream_flush PHP Method

stream_flush() public method

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
return 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

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