public function testRenderWhithDefault()
 {
     // only default
     $strategy = new HIncludeRenderingStrategy();
     $this->assertEquals('<hx:include src="/foo">default</hx:include>', $strategy->render('/foo', Request::create('/'), array('default' => 'default'))->getContent());
     // only global default
     $strategy = new HIncludeRenderingStrategy(null, null, 'global_default');
     $this->assertEquals('<hx:include src="/foo">global_default</hx:include>', $strategy->render('/foo', Request::create('/'), array())->getContent());
     // global default and default
     $strategy = new HIncludeRenderingStrategy(null, null, 'global_default');
     $this->assertEquals('<hx:include src="/foo">default</hx:include>', $strategy->render('/foo', Request::create('/'), array('default' => 'default'))->getContent());
 }
 /**
  * {@inheritdoc}
  */
 public function render($uri, Request $request, array $options = array())
 {
     if (!$this->templating) {
         $this->templating = $this->container->get('templating');
     }
     return parent::render($uri, $request, $options);
 }