Test methods often need data to be tested with. To test some methods completely you need to provide different data sets for every possible test condition. Of course, you can do it manually using loops, like this:
...
public function testSomething()
{
$data = [...];
foreach($data as $dat...