summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/email_helper_test.php
blob: 53a20682535dac42c5f7a3037ad8997159d724d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class Email_helper_test extends CI_TestCase {

	public function set_up()
	{
		$this->helper('email');
	}

	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'));
	}

	public function test_send_mail()
	{
		$this->markTestSkipped("Can't test");
	}

}