Skip to content

Commit

Permalink
Adding skip for validation test, for DNS servers that reply for non-e…
Browse files Browse the repository at this point in the history
…xistant domains.
  • Loading branch information
markstory committed Oct 31, 2009
1 parent 7601951 commit 6b616b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/libs/validation.test.php
Expand Up @@ -1584,6 +1584,10 @@ function testEmail() {
* @return void
*/
function testEmailDeep() {
$found = gethostbynamel('example.abcd');
if ($this->skipIf($found, 'Your DNS service responds for non-existant domains, skipping deep email checks. %s')) {
return;
}
$this->assertTrue(Validation::email('abc.efg@cakephp.org', true));
$this->assertFalse(Validation::email('abc.efg@caphpkeinvalid.com', true));
$this->assertFalse(Validation::email('abc@example.abcd', true));
Expand Down

0 comments on commit 6b616b7

Please sign in to comment.