public function ReaderTest::testGetRemainingLength in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\CssSelector\Tests\ParserCode
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());
}