Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function next()
 {
     if (!isset($this->inMemoryReader)) {
         throw new \RuntimeException('The resource needs to be open.');
     }
     $this->inMemoryReader->next();
 }
 /**
  * @covers Yosmanyga\Resource\Reader\Iterator\InMemoryReader::next
  * @expectedException \RuntimeException
  */
 public function testNextThrowsExceptionWhenNoOpenResource()
 {
     $reader = new InMemoryReader();
     $reader->next();
 }