mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-09-06 07:29:10 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 834593d590 | |||
| a6255605af | |||
| 950d0663dc | |||
| 92dd169c32 |
+19
-22
@@ -1,35 +1,32 @@
|
|||||||
sudo: false
|
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
|
||||||
- 5.5
|
|
||||||
- 5.6
|
|
||||||
- 7.0
|
|
||||||
- 7.1
|
|
||||||
- 7.2
|
|
||||||
- 7.3
|
|
||||||
- 7.4snapshot
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- deps=no
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
|
||||||
include:
|
include:
|
||||||
- php: 5.5
|
- php: 5.5.9
|
||||||
|
dist: trusty
|
||||||
env: deps=low
|
env: deps=low
|
||||||
|
- php: 5.5
|
||||||
|
dist: trusty
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: deps=high
|
dist: xenial
|
||||||
|
- php: 7.0
|
||||||
|
dist: xenial
|
||||||
|
- php: 7.1
|
||||||
|
dist: bionic
|
||||||
|
- php: 7.2
|
||||||
|
dist: bionic
|
||||||
|
- php: 7.3
|
||||||
|
dist: bionic
|
||||||
|
- php: 7.4
|
||||||
|
dist: bionic
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "$deps" = "no" ]; then composer install; fi
|
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; else composer install; fi
|
||||||
- if [ "$deps" = "low" ]; then composer update --prefer-lowest; fi
|
|
||||||
- if [ "$deps" = "high" ]; then composer update; fi
|
before_script:
|
||||||
|
- mkdir -p build/logs
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir -p build/logs
|
|
||||||
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ class EmailLexer extends AbstractLexer
|
|||||||
$this->previous = $this->token = self::$nullToken;
|
$this->previous = $this->token = self::$nullToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function reset()
|
public function reset()
|
||||||
{
|
{
|
||||||
$this->hasInvalidTokens = false;
|
$this->hasInvalidTokens = false;
|
||||||
@@ -228,6 +231,9 @@ class EmailLexer extends AbstractLexer
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
protected function getModifiers()
|
protected function getModifiers()
|
||||||
{
|
{
|
||||||
return 'iu';
|
return 'iu';
|
||||||
|
|||||||
@@ -94,7 +94,9 @@ class MultipleValidationWithAnd implements EmailValidation
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* Returns the validation errors.
|
||||||
|
*
|
||||||
|
* @return MultipleErrors|null
|
||||||
*/
|
*/
|
||||||
public function getError()
|
public function getError()
|
||||||
{
|
{
|
||||||
|
|||||||
+6
-8
@@ -2,7 +2,6 @@
|
|||||||
"name": "egulias/email-validator",
|
"name": "egulias/email-validator",
|
||||||
"description": "A library for validating emails against several RFCs",
|
"description": "A library for validating emails against several RFCs",
|
||||||
"homepage": "https://github.com/egulias/EmailValidator",
|
"homepage": "https://github.com/egulias/EmailValidator",
|
||||||
"type": "Library",
|
|
||||||
"keywords": ["email", "validation", "validator", "emailvalidation", "emailvalidator"],
|
"keywords": ["email", "validation", "validator", "emailvalidation", "emailvalidator"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
],
|
],
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.0.x-dev"
|
"dev-master": "2.1.x-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
@@ -19,15 +18,14 @@
|
|||||||
"url": "https://github.com/dominicsayers/isemail"
|
"url": "https://github.com/dominicsayers/isemail"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">= 5.5",
|
"php": ">=5.5",
|
||||||
"doctrine/lexer": "^1.0.1"
|
"doctrine/lexer": "^1.0.1"
|
||||||
},
|
},
|
||||||
"require-dev" : {
|
"require-dev": {
|
||||||
"satooshi/php-coveralls": "^1.0.1",
|
"satooshi/php-coveralls": "^1.0.1",
|
||||||
"phpunit/phpunit": "^4.8.35||^5.7||^6.0",
|
"phpunit/phpunit": "^4.8.36|^7.5.15",
|
||||||
"symfony/phpunit-bridge": "^4.4@dev",
|
"dominicsayers/isemail": "^3.0.7"
|
||||||
"dominicsayers/isemail": "dev-master"
|
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
|
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
|
||||||
|
|||||||
@@ -22,8 +22,4 @@
|
|||||||
<directory>./EmailValidator/</directory>
|
<directory>./EmailValidator/</directory>
|
||||||
</whitelist>
|
</whitelist>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<listeners>
|
|
||||||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
|
|
||||||
</listeners>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|||||||
Reference in New Issue
Block a user