You are here

public function LineIteratorTest::test in Feeds extensible parsers 8

Tests basic iteration.

File

tests/src/Unit/File/LineIteratorTest.php, line 19

Class

LineIteratorTest
@coversDefaultClass \Drupal\feeds_ex\File\LineIterator @group feeds_ex

Namespace

Drupal\Tests\feeds_ex\Unit\File

Code

public function test() {
  $iterator = new LineIterator($this->moduleDir . '/tests/resources/test.jsonl');
  $this
    ->assertCount(4, iterator_to_array($iterator));
}