Use decorator to mock redis connection in Symfony
To use redis conveniently in my Symfony projects, I use Snc Redis Bundle that automagically defines the service
snc_redis.default_clientwhich is injected as arguments in other service. But here comes the functional tests, and the redis server is not up, or not in a “clean” state.
My first post
First post of new website.