[BUGFIX] Form email validation is case sensitive
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Tests / Unit / Validation / EmailValidatorTest.php
index fe6238a..0545598 100644 (file)
@@ -3,7 +3,7 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 2012 Andreas Lappe <a.lappe@kuehlhaus.com>, kuehlhaus AG
+*  (c) 2012-2013 Andreas Lappe <a.lappe@kuehlhaus.com>, kuehlhaus AG
 *
 *  All rights reserved
 *
@@ -25,11 +25,12 @@ namespace TYPO3\CMS\Form\Tests\Unit\Validation;
 ***************************************************************/
 
 /**
- * Test case for class \TYPO3\CMS\Form\Validation\EmailValidator.
+ * Test case
  *
  * @author Andreas Lappe <a.lappe@kuehlhaus.com>
  */
 class EmailValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
+
        /**
         * @var \TYPO3\CMS\Form\Tests\Unit\Validation\Helper
         */
@@ -51,16 +52,16 @@ class EmailValidatorTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
 
        public function validEmailProvider() {
                return array(
-                       'a@b.de'               => array('a@b.de'),
-                       'somebody@localhost'   => array('somebody@localhost'),
+                       'a@b.de' => array('a@b.de'),
                        'somebody@mymac.local' => array('somebody@mymac.local')
                );
        }
 
        public function invalidEmailProvider() {
                return array(
-                       'myemail@'           => array('myemail@'),
-                       'myemail'            => array('myemail'),
+                       'myemail@' => array('myemail@'),
+                       'myemail' => array('myemail'),
+                       'somebody@localhost' => array('somebody@localhost'),
                );
        }