Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 1 | <?php |
2 | |||||
3 | require_once(BASEPATH.'helpers/email_helper.php'); | ||||
4 | |||||
5 | class Email_helper_test extends CI_TestCase | ||||
6 | { | ||||
7 | |||||
8 | public function test_valid_email() | ||||
9 | { | ||||
10 | $this->assertEquals(FALSE, valid_email('test')); | ||||
11 | $this->assertEquals(FALSE, valid_email('test@test@test.com')); | ||||
12 | $this->assertEquals(TRUE, valid_email('test@test.com')); | ||||
13 | $this->assertEquals(TRUE, valid_email('my.test@test.com')); | ||||
14 | } | ||||
15 | |||||
16 | } |