summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/email_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-20 14:38:49 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-20 14:38:49 +0100
commit151ba1c919af3316543b1871d3bd56cbb210fdca (patch)
tree5f8a65b0a074d2bc380267e46bd88e62c1f5cf20 /tests/codeigniter/helpers/email_helper_test.php
parent6b47711e85671fcfe1bd08ce80d23ca2e91e8e55 (diff)
parent820999cb0d82c80d6dc5dde133568812c8113e29 (diff)
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop-helpers-acc
Diffstat (limited to 'tests/codeigniter/helpers/email_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/email_helper_test.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/codeigniter/helpers/email_helper_test.php b/tests/codeigniter/helpers/email_helper_test.php
new file mode 100644
index 000000000..7324e8109
--- /dev/null
+++ b/tests/codeigniter/helpers/email_helper_test.php
@@ -0,0 +1,16 @@
+<?php
+
+require_once(BASEPATH.'helpers/email_helper.php');
+
+class Email_helper_test extends CI_TestCase
+{
+
+ public function test_valid_email()
+ {
+ $this->assertEquals(FALSE, valid_email('test'));
+ $this->assertEquals(FALSE, valid_email('test@test@test.com'));
+ $this->assertEquals(TRUE, valid_email('test@test.com'));
+ $this->assertEquals(TRUE, valid_email('my.test@test.com'));
+ }
+
+} \ No newline at end of file