Skip to content

Commit e56f7bc

Browse files
ttgrulesJohn Hunt
andauthored
Make PHPUnit fail on deprecation errors (#51)
configure phpunit to show deprecation notices and convert them to exceptions. Co-authored-by: John Hunt <john.hunt@lightcast.io>
1 parent a4bef3c commit e56f7bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44
convertErrorsToExceptions="true"
55
convertNoticesToExceptions="true"
66
convertWarningsToExceptions="true"
7+
convertDeprecationsToExceptions="true"
78
stopOnError="false"
89
stopOnFailure="false"
910
stopOnIncomplete="false"
1011
stopOnSkipped="false">
12+
<php>
13+
<ini name="error_reporting" value="-1" />
14+
</php>
1115

1216
<testsuites>
1317
<testsuite name="Test Suite">

0 commit comments

Comments
 (0)