bug #24498 [Bridge\PhpUnit] Fix infinite loop when running isolated method (nicolas-grekas)
bug #24498 [Bridge\PhpUnit] Fix infinite loop when running isolated method (nicolas-grekas)

This PR was merged into the 3.3 branch.

Discussion
----------

[Bridge\PhpUnit] Fix infinite loop when running isolated method

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

May unlock #23003 (ping @paul-m)
And required to make #23711 pass.

Commits
-------

e07c2f1 [Bridge\PhpUnit] Fix infinite loop when running isolated method

deguif/symfony,smatyas/symfony,mweimerskirch/symfony,jean-gui/symfony,gimler/symfony,pierredup/symfony,weaverryan/symfony,gimler/symfony,frankdejonge/symfony,joelwurtz/symfony,iltar/symfony,gnat42/symfony,fabpot/symfony,arjenm/symfony,docteurklein/symfony,mweimerskirch/symfony,pamil/symfony,HeahDude/symfony,zerkms/symfony,ro0NL/symfony,codeclimate-testing/symfony,phramz/symfony,romaricdrigon/symfony,tucksaun/symfony,chalasr/symfony,pamil/symfony,gnat42/symfony,deguif/symfony,gencer/symfony,oleg-andreyev/symfony,jderusse/symfony,gencer/symfony,mweimerskirch/symfony,e-moe/symfony,yceruto/symfony,bendavies/symfony,Simperfit/symfony,yceruto/symfony,fabpot/symfony,symfony/symfony,nicolas-grekas/symfony,andreia/symfony,hacfi/symfony,Deamon/symfony,symfony/symfony,lstrojny/symfony,hacfi/symfony,zorn-v/symfony,voronkovich/symfony,MatTheCat/symfony,kbond/symfony,damienalexandre/symfony,1ed/symfony,dmaicher/symfony,andrerom/symfony,stof/symfony,HeahDude/symfony,Einenlum/symfony,kbond/symfony,chalasr/symfony,ro0NL/symfony,ogizanagi/symfony,smatyas/symfony,fabpot/symfony,alekitto/symfony,mnapoli/symfony,docteurklein/symfony,jvasseur/symfony,Pierstoval/symfony,1ed/symfony,derrabus/symfony,jzawadzki/symfony,e-moe/symfony,jean-gui/symfony,jderusse/symfony,WhiteEagle88/symfony,Tobion/symfony,voronkovich/symfony,Slamdunk/symfony,lyrixx/symfony,curry684/symfony,docteurklein/symfony,yceruto/symfony,apetitpa/symfony,Tobion/symfony,Simperfit/symfony,damienalexandre/symfony,apetitpa/symfony,c960657/symfony,lstrojny/symfony,Slamdunk/symfony,xabbuh/symfony,nasimnabavi/symfony,Simperfit/symfony,romaricdrigon/symfony,vincentaubert/symfony,Simperfit/symfony,kbond/symfony,teohhanhui/symfony,frankdejonge/symfony,garak/symfony,alekitto/symfony,arjenm/symfony,Aliance/symfony,Strate/symfony,OskarStark/symfony,hhamon/symfony,nasimnabavi/symfony,Deamon/symfony,vincentaubert/symfony,michaelperrin/symfony,HeahDude/symfony,mpdude/symfony,Deamon/symfony,dunglas/symfony,bendavies/symfony,zerkms/symfony,Deamon/symfony,sgehrig/symfony,garak/symfony,gnat42/symfony,Slamdunk/symfony,Nyholm/symfony,gnat42/symfony,Nyholm/symfony,smatyas/symfony,romaricdrigon/symfony,oleg-andreyev/symfony,arjenm/symfony,Taluu/symfony,bendavies/symfony,paradajozsef/symfony,voronkovich/symfony,mnapoli/symfony,Aliance/symfony,aeoris/symfony,Einenlum/symfony,andrerom/symfony,jvasseur/symfony,ogizanagi/symfony,bendavies/symfony,derrabus/symfony,tgalopin/symfony,d-ph/symfony,teohhanhui/symfony,codeclimate-testing/symfony,michaelperrin/symfony,xabbuh/symfony,tucksaun/symfony,smatyas/symfony,josephdpurcell/symfony,ragboyjr/symfony,maidmaid/symfony,voronkovich/symfony,Aliance/symfony,frankdejonge/symfony,dunglas/symfony,ajgarlag/symfony,phramz/symfony,pierredup/symfony,OskarStark/symfony,smatyas/symfony,derrabus/symfony,1ed/symfony,gonzalovilaseca/symfony,zorn-v/symfony,tgalopin/symfony,lyrixx/symfony,paradajozsef/symfony,shieldo/symfony,michaelperrin/symfony,deguif/symfony,joelwurtz/symfony,ragboyjr/symfony,curry684/symfony,Pierstoval/symfony,michaelperrin/symfony,pyrech/symfony,jderusse/symfony,zcodes/symfony,stof/symfony,localheinz/symfony,docteurklein/symfony,Strate/symfony,nicolas-grekas/symfony,localheinz/symfony,sroze/symfony,joelwurtz/symfony,curry684/symfony,gonzalovilaseca/symfony,maidmaid/symfony,xabbuh/symfony,paradajozsef/symfony,ogizanagi/symfony,dmaicher/symfony,docteurklein/symfony,paradajozsef/symfony,derrabus/symfony,gimler/symfony,jean-gui/symfony,Taluu/symfony,oleg-andreyev/symfony,lyrixx/symfony,gimler/symfony,damienalexandre/symfony,Tobion/symfony,zerkms/symfony,lyrixx/symfony,Strate/symfony,jakzal/symfony,WhiteEagle88/symfony,joelwurtz/symfony,jderusse/symfony,1ed/symfony,phramz/symfony,ajgarlag/symfony,Koc/symfony,curry684/symfony,stof/symfony,mweimerskirch/symfony,Tobion/symfony,fabpot/symfony,sroze/symfony,Taluu/symfony,jzawadzki/symfony,pierredup/symfony,zorn-v/symfony,xabbuh/symfony,ajgarlag/symfony,ogizanagi/symfony,yceruto/symfony,Koc/symfony,d-ph/symfony,Slamdunk/symfony,mweimerskirch/symfony,jakzal/symfony,vincentaubert/symfony,sgehrig/symfony,teohhanhui/symfony,pierredup/symfony,andrerom/symfony,nasimnabavi/symfony,tgalopin/symfony,mpdude/symfony,e-moe/symfony,MatTheCat/symfony,pyrech/symfony,zerkms/symfony,nicolas-grekas/symfony,weaverryan/symfony,dmaicher/symfony,Deamon/symfony,c960657/symfony,sroze/symfony,garak/symfony,codeclimate-testing/symfony,ragboyjr/symfony,Nyholm/symfony,zcodes/symfony,mnapoli/symfony,zorn-v/symfony,zcodes/symfony,lstrojny/symfony,MatTheCat/symfony,nicolas-grekas/symfony,vincentaubert/symfony,OskarStark/symfony,tgalopin/symfony,WhiteEagle88/symfony,Koc/symfony,hhamon/symfony,hhamon/symfony,alekitto/symfony,dmaicher/symfony,d-ph/symfony,Pierstoval/symfony,Koc/symfony,mnapoli/symfony,josephdpurcell/symfony,localheinz/symfony,andreia/symfony,tucksaun/symfony,alekitto/symfony,symfony/symfony,arjenm/symfony,kbond/symfony,teohhanhui/symfony,chalasr/symfony,aeoris/symfony,Taluu/symfony,zcodes/symfony,e-moe/symfony,tucksaun/symfony,phramz/symfony,jakzal/symfony,Einenlum/symfony,mpdude/symfony,shieldo/symfony,frankdejonge/symfony,iltar/symfony,jvasseur/symfony,sgehrig/symfony,shieldo/symfony,sgehrig/symfony,andreia/symfony,mpdude/symfony,iltar/symfony,gencer/symfony,weaverryan/symfony,pyrech/symfony,pamil/symfony,shieldo/symfony,Einenlum/symfony,andrerom/symfony,jvasseur/symfony,maidmaid/symfony,stof/symfony,HeahDude/symfony,gonzalovilaseca/symfony,gonzalovilaseca/symfony,MatTheCat/symfony,apetitpa/symfony,ro0NL/symfony,jean-gui/symfony,garak/symfony,codeclimate-testing/symfony,maidmaid/symfony,hhamon/symfony,jakzal/symfony,c960657/symfony,chalasr/symfony,dunglas/symfony,hacfi/symfony,damienalexandre/symfony,OskarStark/symfony,oleg-andreyev/symfony,aeoris/symfony,ro0NL/symfony,Pierstoval/symfony,ragboyjr/symfony,localheinz/symfony,c960657/symfony,nasimnabavi/symfony,andreia/symfony,iltar/symfony,josephdpurcell/symfony,jzawadzki/symfony,sroze/symfony,Simperfit/symfony,d-ph/symfony,pyrech/symfony,apetitpa/symfony,symfony/symfony,pamil/symfony,romaricdrigon/symfony,Nyholm/symfony,deguif/symfony,ajgarlag/symfony,weaverryan/symfony,mnapoli/symfony