/**
  * @return array
  */
 public function getFunctions()
 {
     return array(new Twig_SimpleFunction('barcode', function ($options = array()) {
         echo $this->generator->generate($options);
     }));
 }
 /**
  * testConfigureOptions
  *
  * @param array $options
  *
  * @medium
  *
  * @dataProvider getErrorOptions
  *
  * @expectedException \Exception
  */
 public function testConfigureOptions($options = array())
 {
     $generator = new Generator();
     $generator->generate($options);
 }