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

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 ConstantTest.php.

Member Function Documentation

◆ getTests()

Twig_Tests_Node_Expression_ConstantTest::getTests ( )

Definition at line 21 of file ConstantTest.php.

References array.

22  {
23  $tests = array();
24 
25  $node = new Twig_Node_Expression_Constant('foo', 1);
26  $tests[] = array($node, '"foo"');
27 
28  return $tests;
29  }
Create styles array
The data for the language used.

◆ testConstructor()

Twig_Tests_Node_Expression_ConstantTest::testConstructor ( )

Definition at line 14 of file ConstantTest.php.

15  {
16  $node = new Twig_Node_Expression_Constant('foo', 1);
17 
18  $this->assertEquals('foo', $node->getAttribute('value'));
19  }

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