15 Commits

Author SHA1 Message Date
Lode Claassen 8790f59415 DNS check should convert unicode domains first (#166)
* fix checkdnsrr not handling unicode domains properly

* fix for php7.2
2018-04-10 12:11:19 +02:00
Gabriel Caruso a0e0fadfce Use dedicated PHPUnit assertion methods (#159) 2018-01-05 23:47:59 +01:00
Gabriel Caruso 1bec00a100 Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#155)
* Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase

* Use installed PHPUnit version not global
2017-11-16 00:40:40 +01:00
Eduardo Gulias Davis bc31baa11e Le shadow master (#139)
* Compatibility with RFC 2181

According to RFC2181, every DNS query needs to have a . at the end of
the name record you are requesting.

This will show that that name record is the root of the domain you are
asking
In some cases, when the . is missing, the hostname of the server the
code is running on will be appended to the name record when
checkdnsrr() is being executed and this will in turn return a false
positive when there is a wildcard DNS record for the root domain of the
hostname of the server.

* Test deprecation warnings removed
2017-01-30 23:07:36 +01:00
Simone c0c888ae10 removes trailing spaces (#136) 2017-01-25 22:45:20 +01:00
Issei.M 4d446bf971 NoRFCWarningsValidation now has an InvalidEmail instance if invalid email is passed (#126)
* NoRFCWarningsValidation now has an InvalidEmail instance if invalid email is passed

* fix mentioned point
2016-08-03 22:42:12 +02:00
Issei.M 4f0f9023f0 MultipleValidationWithAnd::getError() now returns NULL if no errors (#124)
* MultipleValidationWithAnd::getError() now returns NULL if no errors

* improve adding error logic

* reword something, add tips

* fix CS
remove wrong tips
2016-07-29 22:43:15 +02:00
Issei.M 19811e0082 MultipleValidatorWithAnd now can break out of loop when error occurs (#122)
* MultipleValidatorWithAnd now can break out of loop when error occurs

* improved logic

* updated doc

* bugfix
2016-07-12 15:22:10 +02:00
Issei.M 7701238433 fixed some problems in DNSCheckValidation (#116) 2016-06-25 00:43:29 +02:00
Issei.M afde3d3874 fixed DNSCheckValidation bug (#115) 2016-06-21 17:31:36 +02:00
Eduardo Gulias Davis 03917146de Added test proof (#111) 2016-05-15 12:03:53 +02:00
Eduardo Gulias Davis 313c7f9f3e Domain back slash (#108)
* New home for all the tests. Fixed namespaces

* small code improvement

* Skipping tests failing only in Travis

* Add backslash as a forbbiden char
2016-05-15 11:55:36 +02:00
Eduardo Gulias Davis 4505d2060a New home for all the tests. Fixed namespaces (#105)
* New home for all the tests. Fixed namespaces

* small code improvement

* Skipping tests failing only in Travis
2016-05-15 11:46:59 +02:00
Eduardo Gulias Davis c1c406a03f using tests from original is_email function (#104) 2016-05-09 23:55:49 +02:00
Eduardo Gulias Davis e4f04d5d8a Spoof validation (#100)
* Spoof validation
2016-05-09 23:55:12 +02:00