You are here

public function ConstraintTest::testSetDefaultPropertyDoctrineStyleWhenDefaultPropertyIsNamedValue in Plug 7

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testSetDefaultPropertyDoctrineStyleWhenDefaultPropertyIsNamedValue() {
  $constraint = new ConstraintWithValueAsDefault(array(
    'value' => 'foo',
  ));
  $this
    ->assertEquals('foo', $constraint->value);
  $this
    ->assertNull($constraint->property);
}