Exemplo n.º 1
0
 public function testToArray()
 {
     $array = ['Expression' => 'Word', 'Term' => 'phrase'];
     $this->assertEquals($array, $this->word->toArray());
 }
 /**
  * {@inheritDoc}
  */
 public function visitWord(Node\Word $word)
 {
     $this->printIndentedLine(sprintf('Word: %s', $word->getToken()));
 }