/**
  * {@inheritdoc}
  */
 public function transform($collection)
 {
     // process any empty value (string, array)
     if (empty($collection)) {
         return array();
     }
     return parent::transform($collection);
 }
 /**
  * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
  */
 public function testTransformExpectsArrayOrCollection()
 {
     $this->transformer->transform('Foo');
 }