public function testDumpToArray() { $arrProps = array('field1' => 1, 'field2' => 2, 'field3' => 3); $entity = new TestEntity($arrProps); $arrProps['testField4'] = 'Doctrine\\Common\\Collections\\ArrayCollection'; $this->expected = $arrProps; $this->actual = EntityUtil::dumpToArray($entity); $this->verify(); }