Commit Graph

8 Commits

Author SHA1 Message Date
Alies Lapatsin 451b438902 Use a safe way to execute dns_get_record (v3) (#286)
* #256 Bypass a PHP warning generated by @dns_get_record

The idea is to create a custom error handler for dns_get_record(), call dns_get_record and then restore the original error handler.
This way we can catch PHP warnings (e.g. "Warning: dns_get_record(): DNS Query failed" or "dns_get_record(): A temporary server error occurred." [ErrorException])

* #256 Make `UnableToGetDNSRecord` reason more testable

* #256 Suppress psalm’s false-positive error

see https://github.com/vimeo/psalm/issues/5134#issuecomment-782937791

* #256 Speed up tests: start from previously failed

* #256 Suppress psalm’s false-positive error

We don’t have a control over AbstractLexer and can’t specify array shape in this parent class
2021-02-28 15:27:57 +01:00
Eduardo Gulias Davis a7b66b5d5a Improve test coverage. Exclude Reasons from coverage, they are simple implementations of interface with only informative data 2021-01-17 15:57:03 +01:00
Remi Collet feba9587ec Fix paths for tests (#244) 2020-07-23 23:58:29 +02:00
Graham Campbell 834593d590 Fixed tests (#223) 2019-12-30 09:14:25 +01:00
Nicolas Grekas a6c8d7101b Fix PHP 7.4 support (#203)
Adding support for deprecated PHP behaviours.
2019-07-19 22:52:08 +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 68aae522c4 moving code around 2016-05-07 15:45:55 +02:00
Fabien Potencier b78e88adce moved phpunit.xml.dist to the root and fixed its content 2013-08-28 09:40:31 +02:00