Skip to content

Commit 5eae425

Browse files
ricfiosebastianbergmann
authored andcommitted
Update writing-tests-for-phpunit.rst
sebastianbergmann#224
1 parent 9cd3180 commit 5eae425

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/writing-tests-for-phpunit.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ Output will be more verbose as it'll contain that name of a dataset that breaks
438438
rewind($this->file);
439439
440440
$this->current = fgetcsv($this->file);
441+
if (is_array($row)) {
442+
$row = array_map('intval', $row);
443+
}
444+
441445
$this->key = 0;
442446
}
443447
@@ -459,6 +463,9 @@ Output will be more verbose as it'll contain that name of a dataset that breaks
459463
public function next(): void
460464
{
461465
$this->current = fgetcsv($this->file);
466+
if (is_array($row)) {
467+
$row = array_map('intval', $row);
468+
}
462469
463470
$this->key++;
464471
}

0 commit comments

Comments
 (0)