1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Also remove deprecation warnings when running outside of travis on php 7.4

This commit is contained in:
Jordi Boggiano
2020-05-22 09:30:27 +02:00
parent 6f9b0a5ff2
commit b5260af0d1
2 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" colors="true">
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Monolog Test Suite">
<directory>tests/Monolog/</directory>

9
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
if (PHP_VERSION_ID >= 70400) {
error_reporting(E_ALL & ~E_DEPRECATED);
} else {
error_reporting(E_ALL);
}
include __DIR__.'/../vendor/autoload.php';