*/ class BaseAction extends \PHPUnit_Framework_TestCase { /** * @return EventDispatcherInterface */ protected function getMockEventDispatcher() { return $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface"); } /** * @return ParserInterface */ protected function getMockParserInterface() { return $this->getMock("Thelia\\Core\\Template\\ParserInterface"); } public function getContainer() { $container = new ContainerBuilder(); $container->set("event_dispatcher", $this->getMockEventDispatcher()); return $container; } }