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