You are here

public function TokenStreamTest::testFailToGetNextIdentifier in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/Parser/TokenStreamTest.php \Symfony\Component\CssSelector\Tests\Parser\TokenStreamTest::testFailToGetNextIdentifier()

File

vendor/symfony/css-selector/Tests/Parser/TokenStreamTest.php, line 53

Class

TokenStreamTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function testFailToGetNextIdentifier() {
  $this
    ->setExpectedException('Symfony\\Component\\CssSelector\\Exception\\SyntaxErrorException');
  $stream = new TokenStream();
  $stream
    ->push(new Token(Token::TYPE_DELIMITER, '.', 2));
  $stream
    ->getNextIdentifier();
}