You are here

public function EmailValidatorTest::testStrict in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php, line 98

Class

EmailValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testStrict() {
  $constraint = new Email(array(
    'strict' => true,
  ));
  $this->validator
    ->validate('example@localhost', $constraint);
  $this
    ->assertNoViolation();
}