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');
An exception for terminatinating execution or to throw for unit testing.
testLegacyConstructorSignature()
@group legacy
testEndOfTemplateNext()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unexpected end of template
testEndOfTemplateLook()
@expectedException Twig_Error_Syntax @expectedExceptionMessage Unexpected end of template
Represents a token stream.
$stream
PHP stream implementation.