Example #1
0
 public function testWriteThrowsExceptionWhenStreamIsNotWritable()
 {
     $stream = new Stream('http://google.com', 'rb');
     $this->setExpectedException('RuntimeException');
     $stream->write('Lorem ipsum dolor sit amet');
 }