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

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

Member Function Documentation

◆ getTests()

Twig_Tests_Node_Expression_Unary_PosTest::getTests ( )

Definition at line 22 of file PosTest.php.

References array.

23  {
24  $node = new Twig_Node_Expression_Constant(1, 1);
25  $node = new Twig_Node_Expression_Unary_Pos($node, 1);
26 
27  return array(
28  array($node, '+1'),
29  );
30  }
Create styles array
The data for the language used.

◆ testConstructor()

Twig_Tests_Node_Expression_Unary_PosTest::testConstructor ( )

Definition at line 14 of file PosTest.php.

15  {
16  $expr = new Twig_Node_Expression_Constant(1, 1);
17  $node = new Twig_Node_Expression_Unary_Pos($expr, 1);
18 
19  $this->assertEquals($expr, $node->getNode('node'));
20  }

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