summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/email_helper_test.php
blob: a01f3d5af4d3bd6d57c59fec9a8bf8e5c8b99d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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'));
	}
	
}