Browse Source

fixed email validator test break

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
7b5b93efd2
  1. 8
      tests/unit/framework/validators/EmailValidatorTest.php

8
tests/unit/framework/validators/EmailValidatorTest.php

@ -78,10 +78,14 @@ class EmailValidatorTest extends TestCase
public function testValidateValueMx()
{
$validator = new EmailValidator();
$validator->checkMX = true;
$validator->checkDNS = true;
$this->assertTrue($validator->validateValue('5011@gmail.com'));
$this->assertFalse($validator->validateValue('test@example.com'));
$validator->checkDNS = false;
$this->assertTrue($validator->validateValue('test@nonexistingsubdomain.example.com'));
$validator->checkDNS = true;
$this->assertFalse($validator->validateValue('test@nonexistingsubdomain.example.com'));
}
public function testValidateAttribute()

Loading…
Cancel
Save