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

Commit 3ed78a8

Browse files
committed
minor #875 Make sure tests are run with full error reporting (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- 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 (because it's not part of the php defaults). 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. Commits ------- e159c84 Make sure tests are run with full error reporting
2 parents 5d033e2 + e159c84 commit 3ed78a8

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)