コード例 #1
0
 /**
  * @expectedException \Symfony\Component\Form\Exception\TransformationFailedException
  */
 public function testReverseTransformDisallowsNegativeInfinity()
 {
     $transformer = new IntegerToLocalizedStringTransformer();
     $transformer->reverseTransform('-∞');
 }
コード例 #2
0
    /**
     * @expectedException Symfony\Component\Form\Exception\TransformationFailedException
     */
    public function testReverseTransformExpectsValidNumber()
    {
        $transformer = new IntegerToLocalizedStringTransformer();

        $transformer->reverseTransform('foo');
    }