mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-09-04 06:33:45 +00:00
Update to 7.2
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
composer.lock
|
||||
report/
|
||||
vendor/
|
||||
.phpunit*
|
||||
|
||||
@@ -9,6 +9,7 @@ use Egulias\EmailValidator\Validation\EmailValidation;
|
||||
use Egulias\EmailValidator\Validation\MultipleErrors;
|
||||
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd;
|
||||
use Egulias\EmailValidator\Validation\RFCValidation;
|
||||
use Egulias\EmailValidator\Validation\Exception\EmptyValidationList;
|
||||
use Egulias\EmailValidator\Warning\AddressLiteral;
|
||||
use Egulias\EmailValidator\Warning\DomainLiteral;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -28,11 +29,9 @@ class MultipleValidationWithAndTest extends TestCase
|
||||
$this->assertFalse($multipleValidation->isValid("exmpale@example.com", $lexer));
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Egulias\EmailValidator\Validation\Exception\EmptyValidationList
|
||||
*/
|
||||
public function testEmptyListIsNotAllowed()
|
||||
{
|
||||
$this->expectException(EmptyValidationList::class);
|
||||
new MultipleValidationWithAnd([]);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,13 +49,13 @@ class RFCValidationTest extends TestCase
|
||||
*/
|
||||
protected $lexer;
|
||||
|
||||
protected function setUp()
|
||||
protected function setUp() : void
|
||||
{
|
||||
$this->validator = new RFCValidation();
|
||||
$this->lexer = new EmailLexer();
|
||||
}
|
||||
|
||||
protected function tearDown()
|
||||
protected function tearDown() : void
|
||||
{
|
||||
$this->validator = null;
|
||||
}
|
||||
|
||||
+6
-6
@@ -9,17 +9,17 @@
|
||||
],
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.1.x-dev"
|
||||
"dev-master": "3.0.x-dev"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.5",
|
||||
"doctrine/lexer": "^1.0.1",
|
||||
"symfony/polyfill-intl-idn": "^1.10"
|
||||
"php": ">=7.2",
|
||||
"doctrine/lexer": "^1.2",
|
||||
"symfony/polyfill-intl-idn": "^1.15"
|
||||
},
|
||||
"require-dev": {
|
||||
"satooshi/php-coveralls": "^1.0.1",
|
||||
"phpunit/phpunit": "^4.8.36|^7.5.15",
|
||||
"php-coveralls/php-coveralls": "^2.2",
|
||||
"phpunit/phpunit": "^8.2",
|
||||
"dominicsayers/isemail": "^3.0.7"
|
||||
},
|
||||
"suggest": {
|
||||
|
||||
Reference in New Issue
Block a user