Closed
Description
Symfony version(s) affected: 3.3+
Description
Services used as autowired arguments are not replaced by $container->set()
even though they are replaced in the container itself. Thus I found quite a weird behaviour when trying to stub a service for testing purpose.
How to reproduce
Please see the repo I created to reproduce the bug, services are public in test env
Launch phpunit
See the different behaviour in the controller executed by phpunit in the controller test
Additional context
Related feature : #24418