Aligning expected exception test to typo fix in doctrine/doctrine2@b7d104d2a2b80480ad158243a7fef7b8f4c597c9, which was breaking the build