/** * 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(); }
/** * 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)); }