--TEST-- Check for vtiful presence --SKIPIF-- --FILE-- './tests']; $excel = new \Vtiful\Kernel\Excel($config); $textFile = $excel->fileName("insert_text_resource_format.xlsx") ->header(['name', 'age']); $fileHandle = $textFile->getHandle(); $format = new \Vtiful\Kernel\Format($fileHandle); $colorStyle = $format->fontColor(\Vtiful\Kernel\Format::COLOR_ORANGE)->toResource(); for ($index = 0; $index < 10; $index++) { $textFile->insertText($index+1, 0, 'vikin'); $textFile->insertText($index+1, 1, 1000, '#,##0', $colorStyle); } $filePath = $textFile->output(); var_dump($filePath); ?> --CLEAN-- --EXPECT-- string(40) "./tests/insert_text_resource_format.xlsx"