ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Tests_Node_BlockReferenceTest Class Reference
+ Inheritance diagram for Twig_Tests_Node_BlockReferenceTest:
+ Collaboration diagram for Twig_Tests_Node_BlockReferenceTest:

Public Member Functions

 testConstructor ()
 
 getTests ()
 
- Public Member Functions inherited from Twig_Test_NodeTestCase
 getTests ()
 
 testCompile ($node, $source, $environment=null, $isPattern=false)
 getTests More...
 
 assertNodeCompilation ($source, Twig_Node $node, Twig_Environment $environment=null, $isPattern=false)
 

Additional Inherited Members

- Protected Member Functions inherited from Twig_Test_NodeTestCase
 getCompiler (Twig_Environment $environment=null)
 
 getEnvironment ()
 
 getVariableGetter ($name, $line=false)
 
 getAttributeGetter ()
 

Detailed Description

Definition at line 12 of file BlockReferenceTest.php.

Member Function Documentation

◆ getTests()

Twig_Tests_Node_BlockReferenceTest::getTests ( )

Definition at line 21 of file BlockReferenceTest.php.

References array, and EOF.

22  {
23  return array(
24  array(new Twig_Node_BlockReference('foo', 1), <<<EOF
25 // line 1
26 \$this->displayBlock('foo', \$context, \$blocks);
27 EOF
28  ),
29  );
30  }
Represents a block call node.
Create styles array
The data for the language used.
const EOF
How fgetc() reports an End Of File.
Definition: JSMin_lib.php:92

◆ testConstructor()

Twig_Tests_Node_BlockReferenceTest::testConstructor ( )

Definition at line 14 of file BlockReferenceTest.php.

15  {
16  $node = new Twig_Node_BlockReference('foo', 1);
17 
18  $this->assertEquals('foo', $node->getAttribute('name'));
19  }
Represents a block call node.

The documentation for this class was generated from the following file: