You are here

public function ConstraintTest::testGetTargetsCanBeString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/ConstraintTest.php \Symfony\Component\Validator\Tests\ConstraintTest::testGetTargetsCanBeString()

File

vendor/symfony/validator/Tests/ConstraintTest.php, line 145

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testGetTargetsCanBeString() {
  $constraint = new ClassConstraint();
  $this
    ->assertEquals('class', $constraint
    ->getTargets());
}