diff --git a/tests/ZendTest/Form/Element/CollectionTest.php b/tests/ZendTest/Form/Element/CollectionTest.php index 371d5477555..1735262f538 100644 --- a/tests/ZendTest/Form/Element/CollectionTest.php +++ b/tests/ZendTest/Form/Element/CollectionTest.php @@ -509,7 +509,8 @@ public function testCanBindObjectAndPopulateAndExtractNestedFieldsets() $productFieldset->setHydrator(new \Zend\Stdlib\Hydrator\ClassMethods()); $mainFieldset = new Fieldset('shop'); - $mainFieldset->setHydrator(new \Zend\Stdlib\Hydrator\ClassMethods()); + $mainFieldset->setObject(new stdClass); + $mainFieldset->setHydrator(new ObjectPropertyHydrator()); $mainFieldset->add($productFieldset); $form = new Form();