You are here

public function ReaderTest::testMoveForward in Zircon Profile 8

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

File

vendor/symfony/css-selector/Tests/Parser/ReaderTest.php, line 79

Class

ReaderTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function testMoveForward() {
  $reader = new Reader('hello');
  $this
    ->assertEquals(0, $reader
    ->getPosition());
  $reader
    ->moveForward(2);
  $this
    ->assertEquals(2, $reader
    ->getPosition());
}