Skip to content

Commit 9d45acc

Browse files
committed
minor symfony#18392 [ci] Skip dns-sensitive tests when DnsMock is not found (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [ci] Skip dns-sensitive tests when DnsMock is not found | Q | A | ------------- | --- | Branch? | 2.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#18319 | License | MIT | Doc PR | - Commits ------- 7e01187 [ci] Skip dns-sensitive tests when DnsMock is not found
2 parents 9945d8a + 7e01187 commit 9d45acc

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)