Skip to content

Commit

Permalink
Improve test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed May 10, 2024
1 parent f7cd879 commit c0052df
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ResultSetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,18 +417,17 @@ public function testChunkByIssue524(): void
firstname,lastname,e-mail
john,doe,john.doe@example.com
jane,doe,jane.doe@example.com
jose,doe,jane.doe@example.com
jeny,doe,jane.doe@example.com
jack,doe,jane.doe@example.com
jose,doe,jose.doe@example.com
jeny,doe,jeny.doe@example.com
jack,doe,jack.doe@example.com
CSV;
$reader = Reader::createFromString($csv)
->setHeaderOffset(0);
$reader = Reader::createFromString($csv)->setHeaderOffset(0);

$total = [];
foreach ($reader->chunkBy(2) as $row) {
$total[] = count($row);
}

self::assertSame($total, [2, 2, 1]);
self::assertSame([2, 2, 1], $total);
}
}

0 comments on commit c0052df

Please sign in to comment.