Procházet zdrojové kódy

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

Jordi Boggiano před 5 roky
rodič
revize
b5260af0d1
2 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. 1 1
      phpunit.xml.dist
  2. 9 0
      tests/bootstrap.php

+ 1 - 1
phpunit.xml.dist

@@ -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 - 0
tests/bootstrap.php

@@ -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';