public function setUp()
 {
     parent::setUp();
     $this->blockRenderer = Bootstrap::getServiceManager()->create('ConLayout\\View\\Renderer\\BlockRenderer');
     $this->blockRenderer = new BlockRenderer();
     $this->resolver = new TemplatePathStack();
     $this->resolver->addPath(__DIR__ . '/_view');
     $this->blockRenderer->setResolver($this->resolver);
     $this->blockRenderer->setHelperPluginManager(Bootstrap::getServiceManager()->get('ViewHelperManager'));
 }
 /**
  *
  * @param ServiceLocatorInterface $serviceLocator
  * @return BlockRenderer
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $blockRenderer = new BlockRenderer();
     $blockRenderer->setHelperPluginManager($serviceLocator->get('ViewHelperManager'));
     $blockRenderer->setResolver($serviceLocator->get('Zend\\View\\Resolver\\AggregateResolver'));
     return $blockRenderer;
 }
 public function setUp()
 {
     $updater = new LayoutUpdater();
     $this->updater = $updater;
     $layout = new Layout(new BlockFactory(), $updater);
     $this->layout = $layout;
     $layout->addBlock('test-block', (new ViewModel())->setTemplate('widget1'));
     $renderer = new BlockRenderer();
     $renderer->setResolver($this->getResolver());
     $this->renderer = $renderer;
     $this->layoutManager = new LayoutManager($layout, $updater, $renderer);
 }