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

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

Member Function Documentation

◆ getTests()

Twig_Tests_Node_Expression_Binary_AndTest::getTests ( )

Definition at line 24 of file AndTest.php.

References array.

25  {
26  $left = new Twig_Node_Expression_Constant(1, 1);
27  $right = new Twig_Node_Expression_Constant(2, 1);
28  $node = new Twig_Node_Expression_Binary_And($left, $right, 1);
29 
30  return array(
31  array($node, '(1 && 2)'),
32  );
33  }
Create styles array
The data for the language used.

◆ testConstructor()

Twig_Tests_Node_Expression_Binary_AndTest::testConstructor ( )

Definition at line 14 of file AndTest.php.

15  {
16  $left = new Twig_Node_Expression_Constant(1, 1);
17  $right = new Twig_Node_Expression_Constant(2, 1);
18  $node = new Twig_Node_Expression_Binary_And($left, $right, 1);
19 
20  $this->assertEquals($left, $node->getNode('left'));
21  $this->assertEquals($right, $node->getNode('right'));
22  }

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