19        $stream = $lexer->tokenize(
'{{ foo }}', 
'foo');
 
   20        $this->assertEquals(
'foo', 
$stream->getFilename());
 
   21        $this->assertEquals(
'{{ foo }}', 
$stream->getSource());
 
   63                if (
null === $value || $value === 
$token->getValue()) {
 
   97            .
"bar{% line 10 %}{{\n" 
  114        $template = 
'{# '.str_repeat(
'*', 100000).
' #}';
 
  121        $this->addToAssertionCount(1);
 
  126        $template = 
'{% verbatim %}'.str_repeat(
'*', 100000).
'{% endverbatim %}';
 
  133        $this->addToAssertionCount(1);
 
  138        $template = 
'{{ '.str_repeat(
'x', 100000).
' }}';
 
  145        $this->addToAssertionCount(1);
 
  150        $template = 
'{% '.str_repeat(
'x', 100000).
' %}';
 
  157        $this->addToAssertionCount(1);
 
  162        $template = 
'{{ 922337203685477580700 }}';
 
  168        $this->assertEquals(
'922337203685477580700', $node->getValue());
 
  174            "{{ 'foo \' bar' }}" => 
'foo \' bar',
 
  175            '{{ "foo \" bar" }}' => 
'foo " bar',
 
  185            $this->addToAssertionCount(1);
 
  191        $template = 
'foo {{ "bar #{ baz + 1 }" }}';
 
  207        $this->addToAssertionCount(1);
 
  222        $this->addToAssertionCount(1);
 
  237        $this->addToAssertionCount(1);
 
  254        $template = 
'{{ "bar #{ "foo#{bar}" }" }}';
 
  270        $this->addToAssertionCount(1);
 
  275        $template = 
'{% foo "bar #{ "foo#{bar}" }" %}';
 
  292        $this->addToAssertionCount(1);
 
  307        $this->addToAssertionCount(1);
 
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
Holds information about a non-compiled Twig template.
testOperatorEndingWithALetterAtTheEndOfALine()
testStringWithEscapedInterpolation()
testNameLabelForFunction()
testLegacyConstructorSignature()
@group legacy
countToken($template, $type, $value=null)
testStringWithNestedInterpolationsInBlock()
testUnterminatedBlock()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unclosed "block" in "index" at line 3
testStringWithInterpolation()
testStringWithNestedInterpolations()
testUnterminatedVariable()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unclosed "variable" in "index" at line...
testStringWithEscapedDelimiter()
testStringWithUnterminatedInterpolation()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unclosed """
testLineDirectiveInline()
const INTERPOLATION_START_TYPE
const INTERPOLATION_END_TYPE
$stream
PHP stream implementation.