From b5260af0d1f62feb72ee6b3b3ed7faf2e41f78d6 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 22 May 2020 09:30:27 +0200 Subject: [PATCH] Also remove deprecation warnings when running outside of travis on php 7.4 --- phpunit.xml.dist | 2 +- tests/bootstrap.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/bootstrap.php diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 20d82b63..54da2818 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,6 +1,6 @@ - + tests/Monolog/ diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 00000000..fedc5caf --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,9 @@ += 70400) { + error_reporting(E_ALL & ~E_DEPRECATED); +} else { + error_reporting(E_ALL); +} + +include __DIR__.'/../vendor/autoload.php'; \ No newline at end of file