blob: 529e969108e4ba22df55d4580d18902fd8c3f0e8 [file] [log] [blame]
Eric Barnes68286a42011-04-21 22:00:33 -04001<?php
2
Taufan Adityae1dc9ea2012-03-28 16:49:49 +07003class Email_helper_test extends CI_TestCase {
Eric Barnes68286a42011-04-21 22:00:33 -04004
Taufan Adityae1dc9ea2012-03-28 16:49:49 +07005 public function set_up()
6 {
7 $this->helper('email');
8 }
9
Eric Barnes68286a42011-04-21 22:00:33 -040010 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 Santored78dd8e2015-04-14 10:54:48 -040016 $this->assertEquals(TRUE, valid_email('my.test@subdomain.test.com'));
Eric Barnes68286a42011-04-21 22:00:33 -040017 }
Andrey Andreev99b782d2012-06-09 22:24:46 +030018
Andrey Andreev3ddd5642014-02-17 17:31:23 +020019 public function test_send_mail()
20 {
21 $this->markTestSkipped("Can't test");
22 }
23
Eric Barnes68286a42011-04-21 22:00:33 -040024}