Skip to content

Commit 197d19f

Browse files
apetitpafabpot
authored andcommitted
Remove malformed EmailValidatorTest + Update UrlValidator test
Remove malformed EmailValidatorTest + Update UrlValidator test
1 parent 6b0702e commit 197d19f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,4 @@ public function testHostnameIsProperlyParsed()
159159

160160
$this->assertNoViolation();
161161
}
162-
163-
public function testEmptyHostReturnsFalse()
164-
{
165-
$this->assertFalse($this->validator->checkMX(''));
166-
$this->assertFalse($this->validator->checkHost(''));
167-
}
168162
}

src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getInvalidUrls()
171171
array('http://example.com/exploit.html?<script>alert(1);</script>'),
172172
array('http://example.com/exploit.html?hel lo'),
173173
array('http://example.com/exploit.html?not_a%hex'),
174-
array('http:/.com'),
174+
array('http://'),
175175
);
176176
}
177177

0 commit comments

Comments
 (0)