|
@@ -40,13 +40,14 @@ class BooleanToStringTransformerTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
{
|
|
$this->setExpectedException('Symfony\Component\Form\Exception\UnexpectedTypeException');
|
|
$this->setExpectedException('Symfony\Component\Form\Exception\UnexpectedTypeException');
|
|
|
|
|
|
- $this->transformer->reverseTransform(1, null);
|
|
|
|
|
|
+ $this->transformer->reverseTransform(1);
|
|
}
|
|
}
|
|
|
|
|
|
public function testReverseTransform()
|
|
public function testReverseTransform()
|
|
{
|
|
{
|
|
- $this->assertEquals(true, $this->transformer->reverseTransform('1', null));
|
|
|
|
- $this->assertEquals(true, $this->transformer->reverseTransform('0', null));
|
|
|
|
- $this->assertEquals(false, $this->transformer->reverseTransform('', null));
|
|
|
|
|
|
+ $this->assertEquals(true, $this->transformer->reverseTransform('1'));
|
|
|
|
+ $this->assertEquals(true, $this->transformer->reverseTransform('0'));
|
|
|
|
+ $this->assertEquals(false, $this->transformer->reverseTransform(''));
|
|
|
|
+ $this->assertEquals(false, $this->transformer->reverseTransform(null));
|
|
}
|
|
}
|
|
}
|
|
}
|