transform() публичный Метод

Transforms between a normalized format (integer or float) into a percentage value.
public transform ( number $value ) : number
$value number Normalized value.
Результат number Percentage value.
 public function testTransformExpectsNumeric()
 {
     $transformer = new PercentToLocalizedStringTransformer();
     $this->setExpectedException('\\InvalidArgumentException');
     $transformer->transform('foo');
 }
 public function testTransformExpectsNumeric()
 {
     $transformer = new PercentToLocalizedStringTransformer();
     $this->setExpectedException('Symfony\\Component\\Form\\Exception\\UnexpectedTypeException');
     $transformer->transform('foo');
 }