Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 197d19f

Browse filesBrowse files
apetitpafabpot
apetitpa
authored andcommitted
Remove malformed EmailValidatorTest + Update UrlValidator test
Remove malformed EmailValidatorTest + Update UrlValidator test
1 parent 6b0702e commit 197d19f
Copy full SHA for 197d19f

File tree

2 files changed

+1
-7
lines changed
Filter options

2 files changed

+1
-7
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php
-6Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Tests/Constraints/UrlValidatorTest.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.