public function TokenStreamTest::testGetNext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/Tests/Parser/TokenStreamTest.php \Symfony\Component\CssSelector\Tests\Parser\TokenStreamTest::testGetNext()
File
- vendor/
symfony/ css-selector/ Tests/ Parser/ TokenStreamTest.php, line 19
Class
Namespace
Symfony\Component\CssSelector\Tests\ParserCode
public function testGetNext() {
$stream = new TokenStream();
$stream
->push($t1 = new Token(Token::TYPE_IDENTIFIER, 'h1', 0));
$stream
->push($t2 = new Token(Token::TYPE_DELIMITER, '.', 2));
$stream
->push($t3 = new Token(Token::TYPE_IDENTIFIER, 'title', 3));
$this
->assertSame($t1, $stream
->getNext());
$this
->assertSame($t2, $stream
->getNext());
$this
->assertSame($t3, $stream
->getNext());
}