[ci] Skip dns-sensitive tests when DnsMock is not found
This commit is contained in:
parent
9945d8a159
commit
7e01187781
|
@ -93,6 +93,7 @@ class EmailValidatorTest extends AbstractConstraintValidatorTest
|
|||
|
||||
/**
|
||||
* @dataProvider getDnsChecks
|
||||
* @requires function Symfony\Bridge\PhpUnit\DnsMock::withMockedHosts
|
||||
*/
|
||||
public function testDnsChecks($type, $violation)
|
||||
{
|
||||
|
@ -126,6 +127,9 @@ class EmailValidatorTest extends AbstractConstraintValidatorTest
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @requires function Symfony\Bridge\PhpUnit\DnsMock::withMockedHosts
|
||||
*/
|
||||
public function testHostnameIsProperlyParsed()
|
||||
{
|
||||
DnsMock::withMockedHosts(array('baz.com' => array(array('type' => 'MX'))));
|
||||
|
|
Reference in New Issue