[BUGFIX] email validator
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Validation / Validator / EmailAddressValidatorTest.php
index 98a27b4..c552ef6 100644 (file)
@@ -40,13 +40,10 @@ class Tx_Extbase_Tests_Unit_Validation_Validator_EmailAddressValidatorTest exten
        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('just+spam@192.168.249.100'),
-                       array('local@192.168.0.2')
+                       array('just+spam@test.de')
                );
        }
 
@@ -54,6 +51,7 @@ class Tx_Extbase_Tests_Unit_Validation_Validator_EmailAddressValidatorTest exten
         * @author Karsten Dambekalns <karsten@typo3.org>
         * @test
         * @dataProvider validAddresses
+        * @param mixed $address
         */
        public function emailAddressValidatorReturnsNoErrorsForAValidEmailAddress($address) {
                $this->assertFalse($this->validator->validate($address)->hasErrors());
@@ -83,6 +81,7 @@ class Tx_Extbase_Tests_Unit_Validation_Validator_EmailAddressValidatorTest exten
         * @author Karsten Dambekalns <karsten@typo3.org>
         * @test
         * @dataProvider invalidAddresses
+        * @param mixed $address
         */
        public function emailAddressValidatorReturnsFalseForAnInvalidEmailAddress($address) {
                $this->assertTrue($this->validator->validate($address)->hasErrors());