Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a5abc4

Browse files
author
Vangest Olivier
committed
change example.com to another-example.com
1 parent 7a42c3e commit 2a5abc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,20 @@ public function testStrict()
114114
*/
115115
public function testDnsChecks($type, $violation)
116116
{
117-
DnsMock::withMockedHosts(array('example.com' => array(array('type' => $violation ? false : $type))));
117+
DnsMock::withMockedHosts(array('another-example.com' => array(array('type' => $violation ? false : $type))));
118118

119119
$constraint = new Email(array(
120120
'message' => 'myMessage',
121121
'MX' === $type ? 'checkMX' : 'checkHost' => true,
122122
));
123123

124-
$this->validator->validate('[email protected]', $constraint);
124+
$this->validator->validate('foo@another-example.com', $constraint);
125125

126126
if (!$violation) {
127127
$this->assertNoViolation();
128128
} else {
129129
$this->buildViolation('myMessage')
130-
->setParameter('{{ value }}', '"[email protected]"')
130+
->setParameter('{{ value }}', '"foo@another-example.com"')
131131
->setCode($violation)
132132
->assertRaised();
133133
}

0 commit comments

Comments
 (0)