You are here

public function EmailValidatorTest::testValidEmails in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Tests/Constraints/EmailValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\EmailValidatorTest::testValidEmails()
  2. 8 vendor/egulias/email-validator/tests/egulias/Tests/EmailValidator/EmailValidatorTest.php \Egulias\Tests\EmailValidator\EmailValidatorTest::testValidEmails()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/EmailValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\EmailValidatorTest::testValidEmails()

@dataProvider getValidEmails

File

vendor/symfony/validator/Tests/Constraints/EmailValidatorTest.php, line 55

Class

EmailValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidEmails($email) {
  $this->validator
    ->validate($email, new Email());
  $this
    ->assertNoViolation();
}