public function IsNullValidatorTest::testInvalidValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/IsNullValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\IsNullValidatorTest::testInvalidValues()
@dataProvider getInvalidValues
File
- vendor/
symfony/ validator/ Tests/ Constraints/ IsNullValidatorTest.php, line 40
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidValues($value, $valueAsString) {
$constraint = new IsNull(array(
'message' => 'myMessage',
));
$this->validator
->validate($value, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', $valueAsString)
->assertRaised();
}