diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-20 14:35:50 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-20 14:35:50 +0100 |
commit | 160a4e5628aba8b5e35da784ec87037e133c1f05 (patch) | |
tree | 3ceec6e888a078bfe86ebfefe2e126f9b23f384f /tests/codeigniter/helpers/email_helper_test.php | |
parent | ad97736d8249240cba802d33a24b7b11e02488cf (diff) | |
parent | 820999cb0d82c80d6dc5dde133568812c8113e29 (diff) |
Merge upstream branch
Diffstat (limited to 'tests/codeigniter/helpers/email_helper_test.php')
-rw-r--r-- | tests/codeigniter/helpers/email_helper_test.php | 16 |
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 |