public function testImportFileNoHeaders() { $s = new ExcelService(); $ctx = new \stdClass(); $ctx->data = []; $s->importFile(__DIR__ . '/excel/basic.xlsx', function ($row, $ctx) { $ctx->data[] = $row; return []; }, null, null, null, $ctx, ['noHeaders' => true]); $this->assertEquals([['field1', 'field2', 'field3'], ['a', 'b'], ['c', 'd', 'e']], $ctx->data); }