public function testHasIterator() { $data = array(); foreach ($this->event as $key => $value) { $data[$key] = $value; } $this ->assertEquals(array( 'name' => 'Event', ), $data); }