Ejemplo n.º 1
0
 /**
  * Move forward to next element
  *
  * @return void Any returned value is ignored.
  */
 public function next()
 {
     if ($this->sendHeaders && !$this->headersSent) {
         $this->headersSent = true;
         return;
     }
     return parent::next();
 }
Ejemplo n.º 2
0
 /**
  * Test defaults
  */
 public function testIteratorAggregate()
 {
     $data = new FileData(new ArrayObject($this->data), array('mimeType' => 'text/plain'));
     $this->assertSame('text/plain', $data->getMimeType());
     $this->assertSame($this->data, iterator_to_array($data));
 }