public function testRender()
 {
     $mock = $this->getTableMock(['template' => 'example.html.twig']);
     $twig = $this->getMockBuilder('\\Twig_Environment')->disableOriginalConstructor()->getMock();
     $templateMock = $this->getMockBuilder(\Twig_TemplateInterface::class)->disableOriginalConstructor()->getMock();
     $twig->expects($this->once())->method('loadTemplate')->will($this->returnValue($templateMock));
     $renderer = new TwigRenderer($twig);
     $renderer->render($mock);
 }
 public function renderTable(AbstractTable $table)
 {
     return $this->renderer->render($table);
 }