public function CallbackValidatorTest::testConstraintGetTargets in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/CallbackValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\CallbackValidatorTest::testConstraintGetTargets()
File
- vendor/
symfony/ validator/ Tests/ Constraints/ CallbackValidatorTest.php, line 328
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testConstraintGetTargets() {
$constraint = new Callback(array());
$targets = array(
Constraint::CLASS_CONSTRAINT,
Constraint::PROPERTY_CONSTRAINT,
);
$this
->assertEquals($targets, $constraint
->getTargets());
}