You are here

public function ConstraintTest::testGetTargetsCanBeArray in Zircon Profile 8.0

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

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testGetTargetsCanBeArray() {
  $constraint = new ConstraintA();
  $this
    ->assertEquals(array(
    'property',
    'class',
  ), $constraint
    ->getTargets());
}