8000 move provider after test · symfony/symfony@7104c4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7104c4e

Browse files
apetitpafabpot
apetitpa
authored andcommitted
move provider after test
1 parent c07fb41 commit 7104c4e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,6 @@ public function testHostnameIsProperlyParsed()
160160
$this->assertNoViolation();
161161
}
162162

163-
public function provideCheckTypes()
164-
{
165-
return array(
166-
array('checkMX', Email::MX_CHECK_FAILED_ERROR),
167-
array('checkHost', Email::HOST_CHECK_FAILED_ERROR),
168-
);
169-
}
170-
171163
/**
172164
* @dataProvider provideCheckTypes
173165
*/
@@ -187,4 +179,12 @@ public function testEmptyHostIsNotValid($checkType, $violation)
187179
->setCode($violation)
188180
->assertRaised();
189181
}
182+
183+
public function provideCheckTypes()
184+
{
185+
return array(
186+
array('checkMX', Email::MX_CHECK_FAILED_ERROR),
187+
array('checkHost', Email::HOST_CHECK_FAILED_ERROR),
188+
);
189+
}
190190
}

0 commit comments

Comments
 (0)
0