public function testReadPropertyIsIgnoredIfPropertyPathIsNull() { $author = new Author(); $author->child = new Author(); $standaloneChild = new Author(); $form = new Form('child'); $form->setData($standaloneChild); $form->setPropertyPath(null); $form->readProperty($author); // should not be $author->child!! $this->assertSame($standaloneChild, $form->getData()); }