You are here

class CombinedSelectorNodeTest in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php \Symfony\Component\CssSelector\Tests\Node\CombinedSelectorNodeTest

Hierarchy

  • class \Symfony\Component\CssSelector\Tests\Node\AbstractNodeTest extends \Symfony\Component\CssSelector\Tests\Node\PHPUnit_Framework_TestCase

Expanded class hierarchy of CombinedSelectorNodeTest

File

vendor/symfony/css-selector/Tests/Node/CombinedSelectorNodeTest.php, line 17

Namespace

Symfony\Component\CssSelector\Tests\Node
View source
class CombinedSelectorNodeTest extends AbstractNodeTest {
  public function getToStringConversionTestData() {
    return array(
      array(
        new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()),
        'CombinedSelector[Element[*] > Element[*]]',
      ),
      array(
        new CombinedSelectorNode(new ElementNode(), ' ', new ElementNode()),
        'CombinedSelector[Element[*] <followed> Element[*]]',
      ),
    );
  }
  public function getSpecificityValueTestData() {
    return array(
      array(
        new CombinedSelectorNode(new ElementNode(), '>', new ElementNode()),
        0,
      ),
      array(
        new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode()),
        1,
      ),
      array(
        new CombinedSelectorNode(new ElementNode(null, 'element'), '>', new ElementNode(null, 'element')),
        2,
      ),
    );
  }

}

Members