public function testIteratorImplementation() { $dict = RTDictionary::alloc()->initWithPHPArray(array("one" => "42", "two" => 42, "three" => YES, "four" => "blah")); foreach ($dict as $key => $val) { $this->assertSame($val, $dict->objectForKey($key)); } }