mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-27 04:10:30 +08:00
Additional tests in EmailValidator.
This commit is contained in:
@@ -64,7 +64,9 @@ class EmailValidator extends Validator
|
||||
{
|
||||
parent::init();
|
||||
if ($this->enableIDN && !function_exists('idn_to_ascii')) {
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new InvalidConfigException('In order to use IDN validation intl extension must be installed and enabled.');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
if ($this->message === null) {
|
||||
$this->message = Yii::t('yii', '{attribute} is not a valid email address.');
|
||||
|
||||
Reference in New Issue
Block a user