8000 [ci] Skip dns-sensitive tests when DnsMock is not found · symfony/symfony@7e01187 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e01187

Browse files
[ci] Skip dns-sensitive tests when DnsMock is not found
1 parent 9945d8a commit 7e01187

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function getInvalidEmails()
9393

9494
/**
9595
* @dataProvider getDnsChecks
96+
* @requires function Symfony\Bridge\PhpUnit\DnsMock::withMockedHosts
9697
*/
9798
public function testDnsChecks($type, $violation)
9899
{
@@ -126,6 +127,9 @@ public function getDnsChecks()
126127
);
127128
}
128129

130+
/**
131+
* @requires function Symfony\Bridge\PhpUnit\DnsMock::withMockedHosts
132+
*/
129133
public function testHostnameIsProperlyParsed()
130134
{
131135
DnsMock::withMockedHosts(array('baz.com' => array(array('type' => 'MX'))));

0 commit comments

Comments
 (0)
0