public function testGetName()
 {
     $mainProfile = $this->prophesize('Twig_Profiler_Profile');
     $watch = $this->prophesize('Symfony\\Component\\Stopwatch\\Stopwatch');
     $profiler = new HandlebarsProfileExtension($mainProfile->reveal(), $watch->reveal());
     $this->assertSame('profiler', $profiler->getName());
 }
 public function render($name, array $context = [])
 {
     $renderer = $this->loadTemplate($name);
     $templateProfile = new \Twig_Profiler_Profile($name, \Twig_Profiler_Profile::TEMPLATE, $name);
     $this->profiler->enter($templateProfile);
     $html = $renderer($context, ['helpers' => $this->helper->getHelpers()]);
     $this->profiler->leave($templateProfile);
     return $html;
 }