You are here

public function Twig_Tests_LexerTest::testBracketsNesting in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/LexerTest.php \Twig_Tests_LexerTest::testBracketsNesting()

File

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, '}'));
}