You are here

public function CallbackValidatorTest::testConstraintGetTargets in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 309

Class

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testConstraintGetTargets() {
  $constraint = new Callback(array(
    'foo',
  ));
  $targets = array(
    Constraint::CLASS_CONSTRAINT,
    Constraint::PROPERTY_CONSTRAINT,
  );
  $this
    ->assertEquals($targets, $constraint
    ->getTargets());
}