public function ConstraintTest::testDontSetDefaultPropertyIfValuePropertyExists in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ ConstraintTest.php, line 93
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testDontSetDefaultPropertyIfValuePropertyExists() {
$constraint = new ConstraintWithValue(array(
'value' => 'foo',
));
$this
->assertEquals('foo', $constraint->value);
$this
->assertNull($constraint->property);
}