public function Twig_Tests_LexerTest::testBracketsNesting

File

drupal/core/vendor/twig/twig/test/Twig/Tests/LexerTest.php, line 35

Class

Twig_Tests_LexerTest

Code

public function testBracketsNesting() {
  $template = '{{ {"a":{"b":"c"}} }}';
  $this
    ->assertEquals(2, $this
    ->countToken($template, Twig_Token::PUNCTUATION_TYPE, '{'));
  $this
    ->assertEquals(2, $this
    ->countToken($template, Twig_Token::PUNCTUATION_TYPE, '}'));
}