You are here

public function ReaderTest::testIsEOF 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::testIsEOF()

File

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

Class

ReaderTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function testIsEOF() {
  $reader = new Reader('');
  $this
    ->assertTrue($reader
    ->isEOF());
  $reader = new Reader('hello');
  $this
    ->assertFalse($reader
    ->isEOF());
  $this
    ->assignPosition($reader, 2);
  $this
    ->assertFalse($reader
    ->isEOF());
  $this
    ->assignPosition($reader, 5);
  $this
    ->assertTrue($reader
    ->isEOF());
}