Skip to content

Commit

Permalink
Also remove deprecation warnings when running outside of travis on ph…
Browse files Browse the repository at this point in the history
…p 7.4
  • Loading branch information
Seldaek committed May 22, 2020
1 parent 6f9b0a5 commit b5260af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
9 changes: 9 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit b5260af

Please sign in to comment.