getContents() public method

Returns the remaining contents of the stream as a string.
public getContents ( ) : string
return string
Ejemplo n.º 1
0
 public function testGetsContents()
 {
     $handle = fopen('php://temp', 'w+');
     $stream = new Stream($handle);
     fwrite($handle, 'data');
     $this->assertEquals('data', $stream->getContents());
 }