WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Symfony\Component\CssSelector\Tests

CssSelectorConverterTest::testCssToXPath() public WC 1.0

{} Это метод класса: CssSelectorConverterTest{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$CssSelectorConverterTest = new CssSelectorConverterTest();
$CssSelectorConverterTest->testCssToXPath();

Код CssSelectorConverterTest::testCssToXPath() WC 5.4.1

<?php
public function testCssToXPath()
{
    $converter = new CssSelectorConverter();

    $this->assertEquals('descendant-or-self::*', $converter->toXPath(''));
    $this->assertEquals('descendant-or-self::h1', $converter->toXPath('h1'));
    $this->assertEquals("descendant-or-self::h1[@id = 'foo']", $converter->toXPath('h1#foo'));
    $this->assertEquals("descendant-or-self::h1[@class and contains(concat(' ', normalize-space(@class), ' '), ' foo ')]", $converter->toXPath('h1.foo'));
    $this->assertEquals('descendant-or-self::foo:h1', $converter->toXPath('foo|h1'));
    $this->assertEquals('descendant-or-self::h1', $converter->toXPath('H1'));
}