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

Symfony\Component\CssSelector\Tests\XPath

TranslatorTest::getHtmlIdsTestData() public WC 1.0

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

Хуков нет.

Возвращает

Null. Ничего.

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

$TranslatorTest = new TranslatorTest();
$TranslatorTest->getHtmlIdsTestData();

Код TranslatorTest::getHtmlIdsTestData() WC 4.5.2

woocommerce/vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php
<?php
public function getHtmlIdsTestData()
{
    return [
        ['div', ['outer-div', 'li-div', 'foobar-div']],
        ['DIV', ['outer-div', 'li-div', 'foobar-div']],  // case-insensitive in HTML
        ['div div', ['li-div']],
        ['div, div div', ['outer-div', 'li-div', 'foobar-div']],
        ['a[name]', ['name-anchor']],
        ['a[NAme]', ['name-anchor']], // case-insensitive in HTML:
        ['a[rel]', ['tag-anchor', 'nofollow-anchor']],
        ['a[rel="tag"]', ['tag-anchor']],
        ['a[href*="localhost"]', ['tag-anchor']],
        ['a[href*=""]', []],
        ['a[href^="http"]', ['tag-anchor', 'nofollow-anchor']],
        ['a[href^="http:"]', ['tag-anchor']],
        ['a[href^=""]', []],
        ['a[href$="org"]', ['nofollow-anchor']],
        ['a[href$=""]', []],
        ['div[foobar~="bc"]', ['foobar-div']],
        ['div[foobar~="cde"]', ['foobar-div']],
        ['[foobar~="ab bc"]', ['foobar-div']],
        ['[foobar~=""]', []],
        ['[foobar~=" \t"]', []],
        ['div[foobar~="cd"]', []],
        ['*[lang|="En"]', ['second-li']],
        ['[lang|="En-us"]', ['second-li']],
        // Attribute values are case sensitive
        ['*[lang|="en"]', []],
        ['[lang|="en-US"]', []],
        ['*[lang|="e"]', []],
        // ... :lang() is not.
        [':lang("EN")', ['second-li', 'li-div']],
        ['*:lang(en-US)', ['second-li', 'li-div']],
        [':lang("e")', []],
        ['li:nth-child(3)', ['third-li']],
        ['li:nth-child(10)', []],
        ['li:nth-child(2n)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-child(even)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-child(2n+0)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-child(+2n+1)', ['first-li', 'third-li', 'fifth-li', 'seventh-li']],
        ['li:nth-child(odd)', ['first-li', 'third-li', 'fifth-li', 'seventh-li']],
        ['li:nth-child(2n+4)', ['fourth-li', 'sixth-li']],
        ['li:nth-child(3n+1)', ['first-li', 'fourth-li', 'seventh-li']],
        ['li:nth-child(n)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-child(n-1)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-child(n+1)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-child(n+3)', ['third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-child(-n)', []],
        ['li:nth-child(-n-1)', []],
        ['li:nth-child(-n+1)', ['first-li']],
        ['li:nth-child(-n+3)', ['first-li', 'second-li', 'third-li']],
        ['li:nth-last-child(0)', []],
        ['li:nth-last-child(2n)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-last-child(even)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-last-child(2n+2)', ['second-li', 'fourth-li', 'sixth-li']],
        ['li:nth-last-child(n)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-last-child(n-1)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-last-child(n-3)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-last-child(n+1)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li', 'sixth-li', 'seventh-li']],
        ['li:nth-last-child(n+3)', ['first-li', 'second-li', 'third-li', 'fourth-li', 'fifth-li']],
        ['li:nth-last-child(-n)', []],
        ['li:nth-last-child(-n-1)', []],
        ['li:nth-last-child(-n+1)', ['seventh-li']],
        ['li:nth-last-child(-n+3)', ['fifth-li', 'sixth-li', 'seventh-li']],
        ['ol:first-of-type', ['first-ol']],
        ['ol:nth-child(1)', ['first-ol']],
        ['ol:nth-of-type(2)', ['second-ol']],
        ['ol:nth-last-of-type(1)', ['second-ol']],
        ['span:only-child', ['foobar-span']],
        ['li div:only-child', ['li-div']],
        ['div *:only-child', ['li-div', 'foobar-span']],
        ['p:only-of-type', ['paragraph']],
        ['a:empty', ['name-anchor']],
        ['a:EMpty', ['name-anchor']],
        ['li:empty', ['third-li', 'fourth-li', 'fifth-li', 'sixth-li']],
        [':root', ['html']],
        ['html:root', ['html']],
        ['li:root', []],
        ['* :root', []],
        ['*:contains("link")', ['html', 'outer-div', 'tag-anchor', 'nofollow-anchor']],
        [':CONtains("link")', ['html', 'outer-div', 'tag-anchor', 'nofollow-anchor']],
        ['*:contains("LInk")', []],  // case sensitive
        ['*:contains("e")', ['html', 'nil', 'outer-div', 'first-ol', 'first-li', 'paragraph', 'p-em']],
        ['*:contains("E")', []],  // case-sensitive
        ['.a', ['first-ol']],
        ['.b', ['first-ol']],
        ['*.a', ['first-ol']],
        ['ol.a', ['first-ol']],
        ['.c', ['first-ol', 'third-li', 'fourth-li']],
        ['*.c', ['first-ol', 'third-li', 'fourth-li']],
        ['ol *.c', ['third-li', 'fourth-li']],
        ['ol li.c', ['third-li', 'fourth-li']],
        ['li ~ li.c', ['third-li', 'fourth-li']],
        ['ol > li.c', ['third-li', 'fourth-li']],
        ['#first-li', ['first-li']],
        ['li#first-li', ['first-li']],
        ['*#first-li', ['first-li']],
        ['li div', ['li-div']],
        ['li > div', ['li-div']],
        ['div div', ['li-div']],
        ['div > div', []],
        ['div>.c', ['first-ol']],
        ['div > .c', ['first-ol']],
        ['div + div', ['foobar-div']],
        ['a ~ a', ['tag-anchor', 'nofollow-anchor']],
        ['a[rel="tag"] ~ a', ['nofollow-anchor']],
        ['ol#first-ol li:last-child', ['seventh-li']],
        ['ol#first-ol *:last-child', ['li-div', 'seventh-li']],
        ['#outer-div:first-child', ['outer-div']],
        ['#outer-div :first-child', ['name-anchor', 'first-li', 'li-div', 'p-b', 'checkbox-fieldset-disabled', 'area-href']],
        ['a[href]', ['tag-anchor', 'nofollow-anchor']],
        [':not(*)', []],
        ['a:not([href])', ['name-anchor']],
        ['ol :Not(li[class])', ['first-li', 'second-li', 'li-div', 'fifth-li', 'sixth-li', 'seventh-li']],
        // HTML-specific
        [':link', ['link-href', 'tag-anchor', 'nofollow-anchor', 'area-href']],
        [':visited', []],
        [':enabled', ['link-href', 'tag-anchor', 'nofollow-anchor', 'checkbox-unchecked', 'text-checked', 'checkbox-checked', 'area-href']],
        [':disabled', ['checkbox-disabled', 'checkbox-disabled-checked', 'fieldset', 'checkbox-fieldset-disabled']],
        [':checked', ['checkbox-checked', 'checkbox-disabled-checked']],
    ];
}