public function Abstract2Dot5ApiTest::testValidateConstraintWithoutGroup in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Validator/ Abstract2Dot5ApiTest.php, line 71
Class
- Abstract2Dot5ApiTest
- Verifies that a validator satisfies the API of Symfony 2.5+.
Namespace
Symfony\Component\Validator\Tests\ValidatorCode
public function testValidateConstraintWithoutGroup() {
$violations = $this->validator
->validate(null, new NotNull());
$this
->assertCount(1, $violations);
}