Closed vitalyiegorov closed 6 years ago
Same happening for Sylius, I think it's a bug introduced by Symfony.
@pamil are you going to work on this?
@pamil @lchrusciel Is it work now ? cause sylius 1.2.0 is released with symfony 4.1 support.
3.1.0 is working with Symfony 4.1, but with few workarounds. Please, check how Sylius is handling it: https://github.com/Sylius/Sylius/commit/25f969e50e53c266572abb3694bc52b17e3a796a.
We need to wait for Symfony 4.1, to get this fix: https://github.com/symfony/symfony/issues/27494
@lchrusciel Today after updating to the latest Symfony 4.1 I start getting this error in my tests:
Problem related to getting MockedContainer Services for unmocking:
As symfony update states they have simplified testing container =) So this code should be removed/changed and docs updated.
As temporary solution/workaround until fix would be released create your own TestCase wrapper and override
tearDown()
like this: