generate($header, $rows); // THEN $expected = "id;name\n1;\"John Doe\"\n2;\"Jane Doe\"\n"; expect($result)->toBe($expected); }); });