public function testMapNonExistingField(ClassMetadata $cm) { $cm->mapField(array('fieldName' => 'notexisting')); }