Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function flush()
 {
     if (!$this->writer) {
         throw new \LogicException('Start writer first');
     }
     $this->writer->flush();
 }
Beispiel #2
0
 /**
  * @expectedException \LogicException
  */
 public function testFlushWithoutStart()
 {
     $writer = new XmlWriter(new TempFile());
     $writer->flush();
 }