/**
  * {@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;
 }
Example #2
0
 /**
  * @dataProvider provideParse
  */
 public function testParse($path, $expected)
 {
     $res = $this->parser->parse($path);
     $this->assertSame($res, $expected);
 }