Skip to content

Commit a54c48c

Browse files
[ci] Skip dns-sensitive tests when DnsMock is not found
1 parent 5ae3aff commit a54c48c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)