WordPress at a glance
class is not described

Symfony\Component\CssSelector\Tests\Parser\Handler

IdentifierHandlerTest{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

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

Methods

  1. generateHandler()
  2. getDontHandleValueTestData()
  3. getHandleValueTestData()

Code of IdentifierHandlerTest{} WC 5.3.0

<?php
class IdentifierHandlerTest extends AbstractHandlerTest
{
    public function getHandleValueTestData()
    {
        return array(
            array('foo', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), ''),
            array('foo|bar', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '|bar'),
            array('foo.class', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '.class'),
            array('foo[attr]', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), '[attr]'),
            array('foo bar', new Token(Token::TYPE_IDENTIFIER, 'foo', 0), ' bar'),
        );
    }

    public function getDontHandleValueTestData()
    {
        return array(
            array('>'),
            array('+'),
            array(' '),
            array('*|foo'),
            array('/* comment */'),
        );
    }

    protected function generateHandler()
    {
        $patterns = new TokenizerPatterns();

        return new IdentifierHandler($patterns, new TokenizerEscaping($patterns));
    }
}