You are here

public function TranslatorTest::testCssToXPath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php \Symfony\Component\CssSelector\Tests\XPath\TranslatorTest::testCssToXPath()

@dataProvider getCssToXPathTestData

File

vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php, line 26

Class

TranslatorTest

Namespace

Symfony\Component\CssSelector\Tests\XPath

Code

public function testCssToXPath($css, $xpath) {
  $translator = new Translator();
  $translator
    ->registerExtension(new HtmlExtension($translator));
  $this
    ->assertEquals($xpath, $translator
    ->cssToXPath($css, ''));
}