Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function find($selector)
 {
     if ($selector == '/') {
         return array($this->getNode(array()));
     }
     $segments = $this->parser->parse($selector);
     $result = array();
     $this->traverse($segments, $result);
     return $result;
 }
Exemplo n.º 2
0
 /**
  * @dataProvider provideParse
  */
 public function testParse($path, $expected)
 {
     $res = $this->parser->parse($path);
     $this->assertSame($res, $expected);
 }