You are here

class FunctionNodeTest in Zircon Profile 8

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

Hierarchy

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

Expanded class hierarchy of FunctionNodeTest

File

vendor/symfony/css-selector/Tests/Node/FunctionNodeTest.php, line 18

Namespace

Symfony\Component\CssSelector\Tests\Node
View source
class FunctionNodeTest extends AbstractNodeTest {
  public function getToStringConversionTestData() {
    return array(
      array(
        new FunctionNode(new ElementNode(), 'function'),
        'Function[Element[*]:function()]',
      ),
      array(
        new FunctionNode(new ElementNode(), 'function', array(
          new Token(Token::TYPE_IDENTIFIER, 'value', 0),
        )),
        "Function[Element[*]:function(['value'])]",
      ),
      array(
        new FunctionNode(new ElementNode(), 'function', array(
          new Token(Token::TYPE_STRING, 'value1', 0),
          new Token(Token::TYPE_NUMBER, 'value2', 0),
        )),
        "Function[Element[*]:function(['value1', 'value2'])]",
      ),
    );
  }
  public function getSpecificityValueTestData() {
    return array(
      array(
        new FunctionNode(new ElementNode(), 'function'),
        10,
      ),
      array(
        new FunctionNode(new ElementNode(), 'function', array(
          new Token(Token::TYPE_IDENTIFIER, 'value', 0),
        )),
        10,
      ),
      array(
        new FunctionNode(new ElementNode(), 'function', array(
          new Token(Token::TYPE_STRING, 'value1', 0),
          new Token(Token::TYPE_NUMBER, 'value2', 0),
        )),
        10,
      ),
    );
  }

}

Members