protected function _before() { parent::_before(); /** @var \Phalcon\Mvc\Application $app */ $app = $this->tester->getApplication(); $this->di = $app->getDI(); }