You are here

public function CommentHandlerTest::testHandleValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Tests/Parser/Handler/CommentHandlerTest.php \Symfony\Component\CssSelector\Tests\Parser\Handler\CommentHandlerTest::testHandleValue()

@dataProvider getHandleValueTestData

Overrides AbstractHandlerTest::testHandleValue

File

vendor/symfony/css-selector/Tests/Parser/Handler/CommentHandlerTest.php, line 22

Class

CommentHandlerTest

Namespace

Symfony\Component\CssSelector\Tests\Parser\Handler

Code

public function testHandleValue($value, Token $unusedArgument, $remainingContent) {
  $reader = new Reader($value);
  $stream = new TokenStream();
  $this
    ->assertTrue($this
    ->generateHandler()
    ->handle($reader, $stream));

  // comments are ignored (not pushed as token in stream)
  $this
    ->assertStreamEmpty($stream);
  $this
    ->assertRemainingContent($reader, $remainingContent);
}