public function testGetTemplate()
 {
     $config = new Config(array(), 'http://example.com');
     $this->assertSame('_profile.twig', $config->getTemplate('profile'));
     $this->assertSame('_button.twig', $config->getTemplate('button'));
     $this->assertSame('_feedback.twig', $config->getTemplate('feedback'));
     $this->assertSame('_password.twig', $config->getTemplate('password'));
     $this->assertSame('password.twig', $config->getTemplate('password_parent'));
 }
 /**
  * Render one of our exception pages.
  *
  * @param \Exception $e
  *
  * @return \Twig_Markup
  */
 public function displayExceptionPage(\Exception $e)
 {
     $context = ['parent' => $this->app['clientlogin.config']->getTemplate('error_parent'), 'feedback' => $this->app['clientlogin.feedback']->get(), 'exception' => $e];
     $html = $this->app['render']->render($this->config->getTemplate('error'), $context);
     return new \Twig_Markup($html, 'UTF-8');
 }