public function CallbackValidatorTest::testConstraintGetTargets

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 150

Class

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testConstraintGetTargets() {
  $constraint = new Callback(array(
    'foo',
  ));
  $this
    ->assertEquals('class', $constraint
    ->getTargets());
}