public function CallbackValidatorTest::testConstraintGetTargets in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ CallbackValidatorTest.php, line 309
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testConstraintGetTargets() {
$constraint = new Callback(array(
'foo',
));
$targets = array(
Constraint::CLASS_CONSTRAINT,
Constraint::PROPERTY_CONSTRAINT,
);
$this
->assertEquals($targets, $constraint
->getTargets());
}