You are here

public function ConstraintTest::testSetProperties in Plug 7

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testSetProperties() {
  $constraint = new ConstraintA(array(
    'property1' => 'foo',
    'property2' => 'bar',
  ));
  $this
    ->assertEquals('foo', $constraint->property1);
  $this
    ->assertEquals('bar', $constraint->property2);
}