Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 1 | <?php |
| 2 | |
Taufan Aditya | e1dc9ea | 2012-03-28 16:49:49 +0700 | [diff] [blame] | 3 | class Email_helper_test extends CI_TestCase { |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 4 | |
Taufan Aditya | e1dc9ea | 2012-03-28 16:49:49 +0700 | [diff] [blame] | 5 | public function set_up() |
| 6 | { |
| 7 | $this->helper('email'); |
| 8 | } |
| 9 | |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 10 | public function test_valid_email() |
| 11 | { |
| 12 | $this->assertEquals(FALSE, valid_email('test')); |
| 13 | $this->assertEquals(FALSE, valid_email('test@test@test.com')); |
| 14 | $this->assertEquals(TRUE, valid_email('test@test.com')); |
| 15 | $this->assertEquals(TRUE, valid_email('my.test@test.com')); |
| 16 | } |
Andrey Andreev | 99b782d | 2012-06-09 22:24:46 +0300 | [diff] [blame^] | 17 | |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 18 | } |