You are here

public function ReaderTest::testGetRemainingLength 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::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());
}