PHPUnit, Interfaces and Namespaces (Symfony2)
问题 I'm currently working on an open source bundle for Symfony2, and really want it to be the dogs nadgers in terms of unit test coverage and general reliability, however I've run into a snag due to my lack of PHPUnit knowledge (or a complex scenario, who knows).. At present, I have a Mailer class, for handling individual mail scenarios. It looks a bit like this: <?php use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; use Symfony\Component\Routing\RouterInterface; class Mailer {