You are here

public function CallbackValidatorTest::testConstraintGetTargets in Zircon Profile 8

Same name and namespace in other branches
  1. 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

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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