Adding email validation test, disproves and closes #5720

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7844 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2008-11-08 00:33:59 +00:00
parent 8777b8ef96
commit 83faf59d0c

View file

@ -1510,6 +1510,7 @@ class ValidationTestCase extends CakeTestCase {
$this->assertTrue(Validation::email('abc@example.pro'));
$this->assertTrue(Validation::email('abc@example.tel'));
$this->assertTrue(Validation::email('abc@example.travel'));
$this->assertTrue(Validation::email('someone@st.t-com.hr'));
// strange, but technically valid email addresses
$this->assertTrue(Validation::email('S=postmaster/OU=rz/P=uni-frankfurt/A=d400/C=de@gateway.d400.de'));