diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-02-06 13:25:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-02-06 13:25:15 +0100 |
commit | 45763179f1201839a43b506d07fe01415890a183 (patch) | |
tree | 54584151b195930f8544e90f51b70a53fb741af6 /_test | |
parent | a18f9d4ad88e6e67819bb34b4f1592ea6450ae8e (diff) | |
download | rpg-45763179f1201839a43b506d07fe01415890a183.tar.gz rpg-45763179f1201839a43b506d07fe01415890a183.tar.bz2 |
fixed email test case since we allow local addresses
Diffstat (limited to '_test')
-rw-r--r-- | _test/cases/inc/mail_isvalid.test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_test/cases/inc/mail_isvalid.test.php b/_test/cases/inc/mail_isvalid.test.php index 8972e2728..d8c88765e 100644 --- a/_test/cases/inc/mail_isvalid.test.php +++ b/_test/cases/inc/mail_isvalid.test.php @@ -26,6 +26,7 @@ class mail_isvalid extends UnitTestCase { $tests[] = array('somebody@somewhere.museum',true); $tests[] = array('somebody@somewhere.travel',true); $tests[] = array('root@[2010:fb:fdac::311:2101]',true); + $tests[] = array('test@example', true); // we allow local addresses // tests from http://code.google.com/p/php-email-address-validation/ below @@ -62,7 +63,6 @@ class mail_isvalid extends UnitTestCase { $tests[] = array('test@.org', false); $tests[] = array('12345678901234567890123456789012345678901234567890123456789012345@example.com', false); // 64 characters is maximum length for local part. This is 65. $tests[] = array('test@123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012.com', false); // 255 characters is maximum length for domain. This is 256. - $tests[] = array('test@example', false); $tests[] = array('test@[123.123.123.123', false); $tests[] = array('test@123.123.123.123]', false); |