public function ConstraintTest::testSetDefaultPropertyDoctrineStyleWhenDefaultPropertyIsNamedValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/ConstraintTest.php \Symfony\Component\Validator\Tests\ConstraintTest::testSetDefaultPropertyDoctrineStyleWhenDefaultPropertyIsNamedValue()
File
- vendor/
symfony/ 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);
}