You are here

public function ConstraintTest::testSetDefaultPropertyDoctrineStylePlusOtherProperty 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::testSetDefaultPropertyDoctrineStylePlusOtherProperty()

File

vendor/symfony/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);
}