Author: Bernhard Schussek (bernhard.schussek@symfony-project.com)
Author: Florian Eckerstorfer (florian@eckerstorfer.org)
Inheritance: extends Symfony\Component\Form\ValueTransformer\BaseValueTransformer
コード例 #1
0
 public function testReverseTransformExpectsString()
 {
     $transformer = new PercentToLocalizedStringTransformer();
     $this->setExpectedException('\\InvalidArgumentException');
     $transformer->reverseTransform(1);
 }
 public function testReverseTransformExpectsString()
 {
     $transformer = new PercentToLocalizedStringTransformer();
     $this->setExpectedException('Symfony\\Component\\Form\\Exception\\UnexpectedTypeException');
     $transformer->reverseTransform(1, null);
 }