You are here

public function ConstraintTest::testSetDefaultPropertyDoctrineStylePlusOtherProperty in Plug 7

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

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