Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony PHPUnit Bridge: Get specific list of deprecation notices

Running PHPUnit with the Symfony PHPUnit Bridge listener gives me a yellow box "Legacy deprecation notices (10)" in a custom Drupal 8 module. I would like to fix those 10, but am struggling to get the details which they are (e.g. which line of code).

  • I've read the documentation on the Symfony PHPUnit Bridge.
  • I've added --verbose to the phpunit command line.
  • I've set the SYMFONY_DEPRECATIONS_HELPER environment variable to 0 or 1, both in Bash and in my phpunit.xml.

I have the suspicion that something in my environment reverts my attempts to see details. Nothing seems to change the output.

Versions:
- PHPUnit 4.8.36
- Symfony PHPUnit Bridge 3.2.14
- PHP 7.0.22

Thanks in advance!

like image 652
Gogowitsch Avatar asked Oct 28 '22 17:10

Gogowitsch


1 Answers

If you want more detail, you can try this:

export SYMFONY_DEPRECATIONS_HELPER="/.*/"

before launch phpunit.

like image 195
Hervé Seignole Avatar answered Nov 03 '22 17:11

Hervé Seignole