Hi, If you look at Bulat's recent controller testing example you can see that he needs to mock the templating service: http://avalanche123.com/post/1215273326/symfony2-controller-testing
As you can see in the comments, its actually not that easy, since the templating service needs to be told to either not call the constructor or it needs yet another services mocked and injected. Now imho it would be nice if the DIC would provide some solution to automate the creation of mock objects. Obviously one would still need access to the mock objects (which might not be guaranteed in all cases) in order to add expects() etc. But it could be a huge timesaver. regards, Lukas Kahwe Smith [email protected] -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
