Esempio n. 1
0
 public function visitBinaryOperationNode(BinaryOperationNode $node)
 {
     // Space around operator.
     $operator = $node->getOperator();
     $this->spaceBefore($operator);
     // @todo The following results in expressions are single line.
     $this->spaceAfter($operator);
 }
 public function testGetRightOperand()
 {
     $this->assertInstanceOf('Pharborist\\Constants\\ConstantNode', $this->op->getRightOperand());
     $this->assertEquals('TRUE', $this->op->getRightOperand()->getText());
 }