Exemple #1
0
 public function offsetGet($offset)
 {
     return $this->trie->get($offset);
 }
Exemple #2
0
 /**
  * @dataProvider getPaths
  */
 public function testPath($index, $expected)
 {
     $trie = new Trie();
     $actual = $trie->getPath($index);
     $this->assertEquals($expected, $actual);
 }