Skip to content
Permalink
Browse files

Adding skip for validation test, for DNS servers that reply for non-e…

…xistant domains.
  • Loading branch information...
markstory committed Oct 31, 2009
1 parent 7601951 commit 6b616b7171cce0eba4fbff88d9934378fe33e543
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/cases/libs/validation.test.php
@@ -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));

0 comments on commit 6b616b7

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.