public function testIterator() { $properties = []; foreach ($this->Media as $property => $value) { $properties[$property] = $value; } $this->assertEquals($properties, $this->Media->properties()); }