Skip to content

Commit b5260af

Browse files
committed
Also remove deprecation warnings when running outside of travis on php 7.4
1 parent 6f9b0a5 commit b5260af

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit bootstrap="vendor/autoload.php" colors="true">
3+
<phpunit bootstrap="tests/bootstrap.php" colors="true">
44
<testsuites>
55
<testsuite name="Monolog Test Suite">
66
<directory>tests/Monolog/</directory>

tests/bootstrap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
if (PHP_VERSION_ID >= 70400) {
4+
error_reporting(E_ALL & ~E_DEPRECATED);
5+
} else {
6+
error_reporting(E_ALL);
7+
}
8+
9+
include __DIR__.'/../vendor/autoload.php';

0 commit comments

Comments
 (0)