Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function visitExcludeTerm(Node\ExcludeTerm $term)
 {
     $this->printIndentedLine('ExcludeTerm');
     $this->increaseIndent();
     $term->getSubExpression()->accept($this);
     $this->decreaseIndent();
 }
Ejemplo n.º 2
0
 public function testToArray()
 {
     $array = ['Operator' => 'Exclude Term', 'Expression' => $this->word];
     $this->assertEquals($array, $this->excludeTerm->toArray());
 }