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