transform() public method

Transforms between a normalized format (integer or float) into a percentage value.
public transform ( number $value ) : number
$value number Normalized value.
return 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');
 }