/** * @expectedException \Symfony\Component\Form\Exception\UnexpectedTypeException * @expectedExceptionMessage Expected argument of type "array", "string" given */ public function testReverseTransformException() { $this->transformer->reverseTransform('test'); }