You are here

public function ConstraintTest::testDontSetDefaultPropertyIfValuePropertyExists in Plug 7

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

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