cssToXpath() public static method

Converts a CSS selector into an XPath expression.
public static cssToXpath ( string $selector, string $prefix = '//' ) : string
$selector string A CSS selector
$prefix string Specifies the nesting of nodes
return string XPath expression
Example #1
0
 /**
  * @dataProvider invalidSelectorProvider
  */
 public function testInvalidSelector($selector)
 {
     $this->setExpectedException('RuntimeException');
     Query::cssToXpath($selector);
 }