public function EmailValidatorTest::testStrict in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ EmailValidatorTest.php, line 98
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testStrict() {
$constraint = new Email(array(
'strict' => true,
));
$this->validator
->validate('example@localhost', $constraint);
$this
->assertNoViolation();
}