Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit e159c84

Browse files
committed
Make sure tests are run with full error reporting
This is also done in all symfony components. It makes sure that tests report all errors and warnings including strict ones. Often this is not the case otherwise. The other advantage is that it makes tests more equal in PHP 5 and PHP 7. PHP 7 removed strict errors and changed them to warnings or notices. So in PHP 7 those errors might cause failures but they do not cause failures in PHP 5 when strict is ignored.
1 parent b2d2463 commit e159c84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
colors="true"
88
bootstrap="bootstrap.php.cache"
99
>
10+
<php>
11+
<ini name="error_reporting" value="-1" />
12+
</php>
13+
1014
<testsuites>
1115
<testsuite name="Project Test Suite">
1216
<directory>../src/*/*Bundle/Tests</directory>

0 commit comments

Comments
 (0)