File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Validator/Tests/Constraints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,20 +114,20 @@ public function testStrict()
114
114
*/
115
115
public function testDnsChecks ($ type , $ violation )
116
116
{
117
- DnsMock::withMockedHosts (array ('another-example.com ' => array (array ('type ' => $ violation ? false : $ type ))));
117
+ DnsMock::withMockedHosts (array ('exemple.fr ' => array (array ('type ' => $ violation ? false : $ type ))));
118
118
119
119
$ constraint = new Email (array (
120
120
'message ' => 'myMessage ' ,
121
121
'MX ' === $ type ? 'checkMX ' : 'checkHost ' => true ,
122
122
));
123
123
124
- $ this ->validator ->validate ('foo@another-example.com ' , $ constraint );
124
+ $ this ->validator ->validate ('foo@exemple.fr ' , $ constraint );
125
125
126
126
if (!$ violation ) {
127
127
$ this ->assertNoViolation ();
128
128
} else {
129
129
$ this ->buildViolation ('myMessage ' )
130
- ->setParameter ('{{ value }} ' , '"foo@another-example.com " ' )
130
+ ->setParameter ('{{ value }} ' , '"foo@exemple.fr " ' )
131
131
->setCode ($ violation )
132
132
->assertRaised ();
133
133
}
You can’t perform that action at this time.
0 commit comments