You are here

public function ReaderTest::testGetRemainingLength in Zircon Profile 8.0

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

File

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

Class

ReaderTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function testGetRemainingLength() {
  $reader = new Reader('hello');
  $this
    ->assertEquals(5, $reader
    ->getRemainingLength());
  $this
    ->assignPosition($reader, 2);
  $this
    ->assertEquals(3, $reader
    ->getRemainingLength());
  $this
    ->assignPosition($reader, 5);
  $this
    ->assertEquals(0, $reader
    ->getRemainingLength());
}