WordPress at a glance
class is not described

Symfony\Component\CssSelector\Tests\Node

ElementNodeTest{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

$ElementNodeTest = new ElementNodeTest();
// use class methods

Methods

  1. getSpecificityValueTestData()
  2. getToStringConversionTestData()

Code of ElementNodeTest{} WC 5.3.0

<?php
class ElementNodeTest extends AbstractNodeTest
{
    public function getToStringConversionTestData()
    {
        return array(
            array(new ElementNode(), 'Element[*]'),
            array(new ElementNode(null, 'element'), 'Element[element]'),
            array(new ElementNode('namespace', 'element'), 'Element[namespace|element]'),
        );
    }

    public function getSpecificityValueTestData()
    {
        return array(
            array(new ElementNode(), 0),
            array(new ElementNode(null, 'element'), 1),
            array(new ElementNode('namespace', 'element'), 1),
        );
    }
}