You are here

public function EmailValidatorTest::testStrict in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/EmailValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\EmailValidatorTest::testStrict()

File

vendor/symfony/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();
}