Skip to content

Commit ae996a3

Browse files
committed
Do not display E_USER_DEPRECATED when running tests
We have added a couple of deprecation messages, but they trip up running unit tests. The only way I could fix this was to disable E_USER_DEPRECATED error reporting while running tests
1 parent fc36142 commit ae996a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

phpunit.xml.dist

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<directory>./tests/integration</directory>
2222
</testsuite>
2323
</testsuites>
24+
<php>
25+
<ini name="error_reporting" value="E_ALL &amp; ~E_USER_DEPRECATED" />
26+
</php>
2427
<filter>
2528
<whitelist>
2629
<directory suffix=".php">./src/</directory>
@@ -35,8 +38,8 @@
3538
</logging>
3639
<listeners>
3740
<listener
38-
class="Mockery\Adapter\Phpunit\TestListener"
39-
file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php"
41+
class="Mockery\Adapter\Phpunit\TestListener"
42+
file="vendor/mockery/mockery/library/Mockery/Adapter/Phpunit/TestListener.php"
4043
/>
4144
</listeners>
4245
</phpunit>

0 commit comments

Comments
 (0)