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