public function TokenStreamTest::testGetNextIdentifierOrStar in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Tests/Parser/TokenStreamTest.php \Symfony\Component\CssSelector\Tests\Parser\TokenStreamTest::testGetNextIdentifierOrStar()
File
- vendor/
symfony/ css-selector/ Tests/ Parser/ TokenStreamTest.php, line 62
Class
Namespace
Symfony\Component\CssSelector\Tests\ParserCode
public function testGetNextIdentifierOrStar() {
$stream = new TokenStream();
$stream
->push(new Token(Token::TYPE_IDENTIFIER, 'h1', 0));
$this
->assertEquals('h1', $stream
->getNextIdentifierOrStar());
$stream
->push(new Token(Token::TYPE_DELIMITER, '*', 0));
$this
->assertNull($stream
->getNextIdentifierOrStar());
}