[BUGFIX] email validator
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Validation / Validator / BeforeExtbase14 / EmailAddressValidatorTest.php
index 481cd40..53f1dd2 100644 (file)
@@ -45,18 +45,17 @@ class Tx_Extbase_Tests_Unit_Validation_Validator_BeforeExtbase14_EmailAddressVal
        public function validAddresses() {
                return array(
                        array('andreas.foerthner@netlogix.de'),
-                       array('user@localhost'),
                        array('user@localhost.localdomain'),
                        array('info@guggenheim.museum'),
                        array('just@test.invalid'),
-                       array('just+spam@test.de'),
-                       array('local@192.168.0.2')
+                       array('just+spam@test.de')
                );
        }
 
        /**
         * @test
         * @dataProvider validAddresses
+        * @param mixed $address
         */
        public function emailAddressValidatorReturnsTrueForAValidEmailAddress($address) {
                $emailAddressValidator = new Tx_Extbase_Validation_Validator_EmailAddressValidator();
@@ -83,6 +82,7 @@ class Tx_Extbase_Tests_Unit_Validation_Validator_BeforeExtbase14_EmailAddressVal
        /**
         * @test
         * @dataProvider invalidAddresses
+        * @param mixed $address
         */
        public function emailAddressValidatorReturnsFalseForAnInvalidEmailAddress($address) {
                $emailAddressValidator = $this->getMock('Tx_Extbase_Validation_Validator_EmailAddressValidator', array('addError'), array(), '', FALSE);