Skip to content

Commit

Permalink
DX: fail PHPUnit tests on warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos authored and keradus committed Dec 23, 2020
1 parent 490faa6 commit bf9b02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
enforceTimeLimit="true"
failOnWarning="true"
processIsolation="false"
stopOnFailure="false"
timeoutForSmallTests="2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function provideFixCases()
];

if (\PHP_VERSION_ID < 80000) {
yield 'call by variable' => [
yield 'call by variable (PHP < 8.0)' => [
'<?php
$a{"b"}{"c"}(1, 2);
',
Expand Down

0 comments on commit bf9b02c

Please sign in to comment.