You are here

public function AbstractValidatorTest::testValidatePropertyWithoutConstraints in Plug 7

https://github.com/symfony/symfony/issues/11604

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Validator/AbstractValidatorTest.php, line 860

Class

AbstractValidatorTest
@since 2.5 @author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Validator

Code

public function testValidatePropertyWithoutConstraints() {
  $entity = new Entity();
  $violations = $this
    ->validateProperty($entity, 'lastName');
  $this
    ->assertCount(0, $violations, '->validateProperty() returns no violations if no constraints have been configured for the property being validated');
}