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