public function FeedsExLineIteratorUnitTests::test in Feeds extensible parsers 7.2
Tests basic iteration.
File
- src/
Tests/ FeedsExUnitTests.test, line 202 - Contains unit tests for feeds_ex.
Class
- FeedsExLineIteratorUnitTests
- Reading a line from a file.
Code
public function test() {
$iterator = new FeedsExLineIterator($this->moduleDir . '/tests/resources/test.jsonl');
$this
->assertEqual(count(iterator_to_array($iterator)), 4);
}