コード例 #1
0
ファイル: Vector.php プロジェクト: bahulneel/phonon
 public function offsetGet($offset)
 {
     return $this->trie->get($offset);
 }
コード例 #2
0
ファイル: TrieTest.php プロジェクト: bahulneel/phonon
 /**
  * @dataProvider getPaths
  */
 public function testPath($index, $expected)
 {
     $trie = new Trie();
     $actual = $trie->getPath($index);
     $this->assertEquals($expected, $actual);
 }