isReadable() 공개 메소드

public isReadable ( )
예제 #1
0
파일: StreamTest.php 프로젝트: phly/http
 public function testIsReadableReturnsFalseWhenStreamIsDetached()
 {
     $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->isReadable());
 }