Skip to content

Commit

Permalink
Adding new email validation
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8109 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
mariano.iglesias committed Mar 16, 2009
1 parent eba2e78 commit a9062e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cake/tests/cases/libs/validation.test.php
Expand Up @@ -83,7 +83,7 @@ function testNotEmpty() {
$this->assertTrue(Validation::notEmpty('π'));
$this->assertFalse(Validation::notEmpty("\t "));
$this->assertFalse(Validation::notEmpty(""));

}
/**
* testNotEmptyISO88591Encoding method
Expand Down Expand Up @@ -1514,6 +1514,7 @@ function testEmail() {
$this->assertTrue(Validation::email('abc@g.cn'));
$this->assertTrue(Validation::email('abc@x.com'));
$this->assertTrue(Validation::email('henrik@sbcglobal.net'));
$this->assertTrue(Validation::email('sani@sbcglobal.net'));

// all ICANN TLDs
$this->assertTrue(Validation::email('abc@example.aero'));
Expand Down Expand Up @@ -1974,4 +1975,4 @@ function testUserDefined() {
// $this->assertTrue(Validation::file(TEST_CAKE_CORE_INCLUDE_PATH. 'VERSION.txt'));
// }
}
?>
?>

0 comments on commit a9062e2

Please sign in to comment.