You are here

public function ConstraintTest::testGroupsAreConvertedToArray in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/ConstraintTest.php, line 120

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testGroupsAreConvertedToArray() {
  $constraint = new ConstraintA(array(
    'groups' => 'Foo',
  ));
  $this
    ->assertEquals(array(
    'Foo',
  ), $constraint->groups);
}