public function testSetLexer()
 {
     $bridge = new TwigBridge($this->getApplication());
     $delimiters = array('tag_comment' => array('*', '*/'), 'tag_block' => array('%', '%/'), 'tag_variable' => array('!', '!/'));
     $bridge->setLexer(new Twig_Lexer(new Twig_Environment(), $delimiters));
     $lexer = $bridge->getLexer();
     $prop = new ReflectionProperty('Twig_Lexer', 'options');
     $prop->setAccessible(true);
     $options = $prop->getValue($lexer);
     // Comment
     $this->assertEquals('*', $options['tag_comment'][0]);
     $this->assertEquals('*/', $options['tag_comment'][1]);
     // Block
     $this->assertEquals('%', $options['tag_block'][0]);
     $this->assertEquals('%/', $options['tag_block'][1]);
     // Variable
     $this->assertEquals('!', $options['tag_variable'][0]);
     $this->assertEquals('!/', $options['tag_variable'][1]);
 }