* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Tests\Constraints; use Symfony\Component\Validator\Constraints\IsFalse; use Symfony\Component\Validator\Constraints\IsFalseValidator; use Symfony\Component\Validator\Test\ConstraintValidatorTestCase; class IsFalseValidatorTest extends ConstraintValidatorTestCase { protected function createValidator() { return new IsFalseValidator(); } public function testNullIsValid() { $this->validator->validate(null, new IsFalse()); $this->assertNoViolation(); } public function testFalseIsValid() { $this->validator->validate(false, new IsFalse()); $this->assertNoViolation(); } public function testTrueIsInvalid() { $constraint = new IsFalse(array( 'message' => 'myMessage', )); $this->validator->validate(true, $constraint); $this->buildViolation('myMessage') ->setParameter('{{ value }}', 'true') ->setCode(IsFalse::NOT_FALSE_ERROR) ->assertRaised(); } } __halt_compiler();----SIGNATURE:----haGOsYR9eRPc2WEwdTpRN8Xlb0rwU5QeVkganskX9MlcbbgyozAp1pGsBNBuf7Y0V0wNtYtYtW48z9THsLpm599SHBAEgWqzHesf+QyUVf7H0Gwj6nQM5R0Iu8nseJMKK6heGz2yR8ubCkVQxvxgzjiw4vKFw27O86e8f43mehQ1CLv6IFgZXA2XzRH0VUDRYXTcTC9DxOgSzQgP2DqqYzqtfAsm2LDDnAkJR3NKp7LEU4U8LgaC9gIOwIh253RzTYyz6mWbNyDHwhws7Yz4fkQh2kC8YGl9y2wpLq+bMC/uVFxyVlijiG/43KblOzg/5usf71K/R11vA+YF50ZRFDoPsW/u0R5YDlnN8YtPOdo+AdZIddda0ybQy6m1y1N8zQUvr9mxMo6T+ezxWc1d+bSGsNH7wflEGNqVcZbTlNbS2KMOLQ8ftXPhzFhBaX5fc6NBwyvK3K4EqUEnUPxeggBlBhAKQvEzvwvDoIWxjgPGgfuuckPElEFqTaJ4t0NiDq9RdHM/gzC/N4nMmzXq7ZqJ9agkeku4y7Ax1LrdaaTX50cBIEnBvIJYidmihp7vGhXznURyWKvzHl6Q8jpq3he/gSmxAyPpemaYV7daN6PfNBxA/t9ZxQ9U5EzY+2u+RBLeifSGDqY1bOTm94qw03F+w8K8Bul+0m9Kdm3GqZk=----ATTACHMENT:----NTcyNDE3MTQ4ODgyMzkyNCA5NjY3MzQ4MTAwMTcwOTE0IDU2OTcxMTY5MjI2Njk3NzI=