isSeekable() public method

public isSeekable ( )
Esempio n. 1
0
 public function testIsSeekableReturnsFalseForDetachedStreams()
 {
     $this->tmpnam = tempnam(sys_get_temp_dir(), 'phly');
     file_put_contents($this->tmpnam, 'FOO BAR');
     $resource = fopen($this->tmpnam, 'wb+');
     $stream = new Stream($resource);
     $stream->detach();
     $this->assertFalse($stream->isSeekable());
 }