protected function setUp()
{
parent::setUp();
$this->renderer = new PdfRenderer();
$this->strategy = new PdfStrategy($this->renderer);
$this->event = new ViewEvent();
$this->response = new HttpResponse();
$this->resolver = new TemplatePathStack();
$this->resolver->addPath(dirname(__DIR__) . '/_templates');
$this->renderer->setResolver($this->resolver);
$htmlRenderer = new PhpRenderer();
$htmlRenderer->setResolver($this->resolver);
$this->renderer->setHtmlRenderer($htmlRenderer);
$this->renderer->setEngine($this->getServiceManager()->get('dompdf'));
}