示例#1
0
 public function testReadThrowsExceptionWhenStreamIsNotReadable()
 {
     $resource = Stream::fopen('php://temp', 'w');
     $stream = new Stream($resource);
     $this->setExpectedException('RuntimeException');
     $stream->read(1);
 }