move provider after test
This commit is contained in:
parent
c07fb416ff
commit
7104c4e849
@ -160,14 +160,6 @@ class EmailValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
$this->assertNoViolation();
|
$this->assertNoViolation();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideCheckTypes()
|
|
||||||
{
|
|
||||||
return array(
|
|
||||||
array('checkMX', Email::MX_CHECK_FAILED_ERROR),
|
|
||||||
array('checkHost', Email::HOST_CHECK_FAILED_ERROR),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider provideCheckTypes
|
* @dataProvider provideCheckTypes
|
||||||
*/
|
*/
|
||||||
@ -187,4 +179,12 @@ class EmailValidatorTest extends AbstractConstraintValidatorTest
|
|||||||
->setCode($violation)
|
->setCode($violation)
|
||||||
->assertRaised();
|
->assertRaised();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function provideCheckTypes()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('checkMX', Email::MX_CHECK_FAILED_ERROR),
|
||||||
|
array('checkHost', Email::HOST_CHECK_FAILED_ERROR),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user