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')); |
Brett Santore | d78dd8e | 2015-04-14 10:54:48 -0400 | [diff] [blame] | 16 | $this->assertEquals(TRUE, valid_email('my.test@subdomain.test.com')); |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 17 | } |
Andrey Andreev | 99b782d | 2012-06-09 22:24:46 +0300 | [diff] [blame] | 18 | |
Andrey Andreev | 3ddd564 | 2014-02-17 17:31:23 +0200 | [diff] [blame] | 19 | public function test_send_mail() |
| 20 | { |
| 21 | $this->markTestSkipped("Can't test"); |
| 22 | } |
| 23 | |
Eric Barnes | 68286a4 | 2011-04-21 22:00:33 -0400 | [diff] [blame] | 24 | } |