public function AbstractValidatorTest::testValidatePropertyValueWithoutConstraints in Plug 7
https://github.com/symfony/symfony/issues/11604
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ AbstractValidatorTest.php, line 993
Class
- AbstractValidatorTest
- @since 2.5 @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
public function testValidatePropertyValueWithoutConstraints() {
$entity = new Entity();
$violations = $this
->validatePropertyValue($entity, 'lastName', 'foo');
$this
->assertCount(0, $violations, '->validatePropertyValue() returns no violations if no constraints have been configured for the property being validated');
}