*/ abstract class ControllerTestBase extends ContainerAwareTestCase { /** @var BaseController */ protected $controller; public function setUp() { parent::setUp(); $this->controller = $this->getController(); $this->controller->setContainer($this->container); } /** * @return \Thelia\Controller\BaseController The controller you want to test */ abstract protected function getController(); }