Browse Source

DX: fail PHPUnit tests on warning

Kuba Werłos 4 years ago
parent
commit
bf9b02c6a5
2 changed files with 2 additions and 1 deletions
  1. 1 0
      phpunit.xml.dist
  2. 1 1
      tests/Fixer/FunctionNotation/RegularCallableCallFixerTest.php

+ 1 - 0
phpunit.xml.dist

@@ -16,6 +16,7 @@
     convertNoticesToExceptions="true"
     convertWarningsToExceptions="true"
     enforceTimeLimit="true"
+    failOnWarning="true"
     processIsolation="false"
     stopOnFailure="false"
     timeoutForSmallTests="2"

+ 1 - 1
tests/Fixer/FunctionNotation/RegularCallableCallFixerTest.php

@@ -123,7 +123,7 @@ final class RegularCallableCallFixerTest extends AbstractFixerTestCase
         ];
 
         if (\PHP_VERSION_ID < 80000) {
-            yield 'call by variable' => [
+            yield 'call by variable (PHP < 8.0)' => [
                 '<?php
                     $a{"b"}{"c"}(1, 2);
                 ',