public function setUp() { parent::setUp(); for ($i = 0; $i < 4; $i = $i + 2) { $this->iteratorData[] = (object) array('tree' => (object) array('fairies' => array($this->data[$i], $this->data[$i + 1], null))); } $this->iteratorData[] = null; $this->iteratorData[] = (object) array('tree' => (object) array()); }
public function setUp() { parent::setUp(); foreach ($this->data as $data) { $this->iteratorData[] = (object) array('tree' => (object) array('fairy' => $data)); } $this->iteratorData[] = null; $this->iteratorData[] = (object) array('tree' => (object) array()); }