/**
  * {@inheritDoc}
  */
 public function __construct($precision = null, $type = null)
 {
     parent::__construct($precision, $type);
     $this->precision = $precision;
 }
 public function testReverseTransformExpectsString()
 {
     $transformer = new PercentToLocalizedStringTransformer();
     $this->setExpectedException('Symfony\\Component\\Form\\Exception\\UnexpectedTypeException');
     $transformer->reverseTransform(1);
 }
 /**
  * {@inheritdoc}
  */
 public function reverseTransform($value)
 {
     return parent::reverseTransform(str_replace('.', ',', $value));
 }