Skip to content

Commit 92cb44b

Browse files
committed
Improve the reporting of deprecations in the testsuite
When the simple-phpunit script is not used, the test listener is not registered magically by symfony/phpunit-bridge in recent PHPUnit versions. It needs to be registered explicitly.
1 parent 0d3d9c3 commit 92cb44b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

phpunit.http_client.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<directory>./src</directory>
1919
</whitelist>
2020
</filter>
21+
22+
<listeners>
23+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
24+
</listeners>
2125
</phpunit>

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@
1818
<directory>./src</directory>
1919
</whitelist>
2020
</filter>
21+
22+
<listeners>
23+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
24+
</listeners>
2125
</phpunit>

0 commit comments

Comments
 (0)