WordPress at a glance
class is not described

Symfony\Component\CssSelector\Tests\Node

AbstractNodeTest{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. getSpecificityValueTestData()
  2. getToStringConversionTestData()
  3. testSpecificityValue(NodeInterface $node, $value)
  4. testToStringConversion(NodeInterface $node, $representation)

Code of AbstractNodeTest{} WC 5.3.0

<?php
abstract class AbstractNodeTest extends TestCase
{
    /** @dataProvider getToStringConversionTestData */
    public function testToStringConversion(NodeInterface $node, $representation)
    {
        $this->assertEquals($representation, (string) $node);
    }

    /** @dataProvider getSpecificityValueTestData */
    public function testSpecificityValue(NodeInterface $node, $value)
    {
        $this->assertEquals($value, $node->getSpecificity()->getValue());
    }

    abstract public function getToStringConversionTestData();

    abstract public function getSpecificityValueTestData();
}