18 self::$tokens = array(
36 $this->assertEquals(
'foo',
$stream->getFilename());
37 $this->assertEquals(
'{{ foo }}',
$stream->getSource());
38 $this->assertEquals(
'foo',
$stream->getSourceContext()->getName());
39 $this->assertEquals(
'{{ foo }}',
$stream->getSourceContext()->getCode());
49 $repr[] =
$token->getValue();
51 $this->assertEquals(
'1, 2, 3, 4, 5, 6, 7', implode(
', ', $repr),
'->next() advances the pointer and returns the current token');
Represents a token stream.
$stream
PHP stream implementation.
testEndOfTemplateNext()
Twig_Error_Syntax Unexpected end of template
testLegacyConstructorSignature()
legacy
testEndOfTemplateLook()
Twig_Error_Syntax Unexpected end of template