Browse Source

Library: libxlswirter 1.1.3

viest 3 years ago
parent
commit
7fa322cde6
90 changed files with 310 additions and 265 deletions
  1. 1 1
      library/libxlsxwriter
  2. 3 3
      tests/005.phpt
  3. 6 6
      tests/010.phpt
  4. 3 3
      tests/011.phpt
  5. 3 3
      tests/012.phpt
  6. 3 3
      tests/013.phpt
  7. 3 3
      tests/014.phpt
  8. 3 3
      tests/015.phpt
  9. 3 3
      tests/016.phpt
  10. 3 3
      tests/018.phpt
  11. 2 2
      tests/activate_sheet.phpt
  12. 2 2
      tests/chart_axis_name_x.phpt
  13. 2 2
      tests/chart_axis_name_y.phpt
  14. 3 3
      tests/chart_line.phpt
  15. 1 1
      tests/chart_resource.phpt
  16. 2 2
      tests/chart_series.phpt
  17. 2 2
      tests/chart_series_name.phpt
  18. 2 2
      tests/chart_style.phpt
  19. 2 2
      tests/chart_title.phpt
  20. 3 3
      tests/close.phpt
  21. 25 0
      tests/const_memory.phpt
  22. 4 4
      tests/const_memory_index_out_range.phpt
  23. 3 3
      tests/default_format.phpt
  24. 2 2
      tests/exist_sheet.phpt
  25. 4 4
      tests/fix-207.phpt
  26. 3 3
      tests/fix-243.phpt
  27. 3 3
      tests/format_align.phpt
  28. 3 3
      tests/format_background.phpt
  29. 3 3
      tests/format_border.phpt
  30. 3 3
      tests/format_font.phpt
  31. 3 3
      tests/format_font_color.phpt
  32. 3 3
      tests/format_font_size.phpt
  33. 3 3
      tests/format_font_strikeout.phpt
  34. 3 3
      tests/format_number.phpt
  35. 3 3
      tests/format_unlocked.phpt
  36. 3 3
      tests/format_wrap.phpt
  37. 3 3
      tests/freeze_panes.phpt
  38. 2 2
      tests/get_set_current_line.phpt
  39. 3 3
      tests/gridlines.phpt
  40. 6 2
      tests/header_format.phpt
  41. 3 3
      tests/image_no_styles.phpt
  42. 3 3
      tests/image_width_height_styles.phpt
  43. 3 3
      tests/insert_comment.phpt
  44. 3 3
      tests/insert_date_custom_format.phpt
  45. 3 3
      tests/insert_date_default_format.phpt
  46. 3 3
      tests/insert_date_resource_format.phpt
  47. 3 3
      tests/insert_text_resource_format.phpt
  48. 3 3
      tests/insert_url_format.phpt
  49. 3 3
      tests/insert_url_no_format.phpt
  50. 3 3
      tests/margins.phpt
  51. 3 3
      tests/merge_cell_type_writer.phpt
  52. 3 3
      tests/multiple_file.phpt
  53. 4 4
      tests/open_xlsx_file.phpt
  54. 5 3
      tests/open_xlsx_get_data.phpt
  55. 6 6
      tests/open_xlsx_get_data_skip_empty.phpt
  56. 0 4
      tests/open_xlsx_get_data_skip_hidden_rows.phpt
  57. 3 3
      tests/open_xlsx_get_data_skip_rows.phpt
  58. 3 3
      tests/open_xlsx_get_data_with_set_type.phpt
  59. 4 3
      tests/open_xlsx_get_sheet_not_found_data.phpt
  60. 5 5
      tests/open_xlsx_global_data_type.phpt
  61. 3 3
      tests/open_xlsx_next_cell_callback.phpt
  62. 3 3
      tests/open_xlsx_next_cell_callback_with_data_type.phpt
  63. 3 3
      tests/open_xlsx_next_row.phpt
  64. 5 5
      tests/open_xlsx_next_row_skip_empty.phpt
  65. 3 3
      tests/open_xlsx_next_row_skip_rows.phpt
  66. 3 3
      tests/open_xlsx_next_row_with_data_type_date.phpt
  67. 3 3
      tests/open_xlsx_next_row_with_data_type_date_array_index.phpt
  68. 3 3
      tests/open_xlsx_next_row_with_data_type_string.phpt
  69. 3 3
      tests/open_xlsx_next_row_with_set_type.phpt
  70. 4 4
      tests/open_xlsx_sheet.phpt
  71. 5 4
      tests/open_xlsx_sheet_flag.phpt
  72. 3 3
      tests/open_xlsx_sheet_list.phpt
  73. 3 3
      tests/paper.phpt
  74. 3 3
      tests/protection.phpt
  75. 3 3
      tests/protection_password.phpt
  76. 3 3
      tests/sheet_add.phpt
  77. 3 3
      tests/sheet_checkout.phpt
  78. 3 3
      tests/show_comment.phpt
  79. 6 2
      tests/validation_limiting_input_to_a_value_in_a_dropdown_list.phpt
  80. 6 2
      tests/validation_limiting_input_to_an_integer_greater_than_a_fixed_value.phpt
  81. 6 2
      tests/validation_limiting_input_to_an_integer_in_a_fixed_range.phpt
  82. 6 2
      tests/validation_limiting_input_to_an_integer_outside_a_fixed_range.phpt
  83. 2 2
      tests/writer_exception.phpt
  84. 3 3
      tests/xlsx_to_csv.phpt
  85. 3 3
      tests/xlsx_to_csv_callback.phpt
  86. 3 3
      tests/xlsx_to_csv_callback_custom_delimiter.phpt
  87. 3 3
      tests/xlsx_to_csv_custom_delimiter.phpt
  88. 4 4
      tests/xlsx_to_csv_skip_rows.phpt
  89. 3 3
      tests/xlsx_to_csv_skip_rows_callback.phpt
  90. 3 3
      tests/zoom.phpt

+ 1 - 1
library/libxlsxwriter

@@ -1 +1 @@
-Subproject commit 90ffbeb046d39b621389149e0ba61de436e16fa7
+Subproject commit 576d169463c7f9990045fd9223f5cf688150def0

+ 3 - 3
tests/005.phpt

@@ -6,14 +6,14 @@ Check for vtiful presence
 <?php
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial01.xlsx')
+$filePath = $excel->fileName('005.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/005.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(16) "./tests/005.xlsx"

+ 6 - 6
tests/010.phpt

@@ -6,14 +6,14 @@ Check for vtiful presence
 <?php
 $config = ['path' => './tests'];
 $excel_one  = new \Vtiful\Kernel\Excel($config);
-$fileOne = $excel_one->fileName('tutorial01.xlsx')
+$fileOne = $excel_one->fileName('010-1.xlsx')
     ->header(['test1'])
     ->data([
         ['data1'],
     ])
     ->output();
 $excel_two  = new \Vtiful\Kernel\Excel($config);
-$fileTwo = $excel_two->fileName('tutorial02.xlsx')
+$fileTwo = $excel_two->fileName('010-2.xlsx')
     ->header(['test2'])
     ->data([
         ['data2'],
@@ -23,9 +23,9 @@ var_dump($fileOne,$fileTwo);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
-@unlink(__DIR__ . '/tutorial02.xlsx');
+@unlink(__DIR__ . '/010-1.xlsx');
+@unlink(__DIR__ . '/010-2.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
-string(23) "./tests/tutorial02.xlsx"
+string(18) "./tests/010-1.xlsx"
+string(18) "./tests/010-2.xlsx"

+ 3 - 3
tests/011.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName('tutorial01.xlsx');
+$fileObject = $excel->fileName('11.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -22,7 +22,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/11.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/11.xlsx"

+ 3 - 3
tests/012.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName('tutorial01.xlsx');
+$fileObject = $excel->fileName('12.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -26,7 +26,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/12.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/12.xlsx"

+ 3 - 3
tests/013.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$textFile = $excel->fileName("tutorial01.xlsx")
+$textFile = $excel->fileName("13.xlsx")
     ->header(['name', 'age']);
 
 for ($index = 0; $index < 10; $index++) {
@@ -21,7 +21,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/13.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/13.xlsx"

+ 3 - 3
tests/014.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$freeFile = $excel->fileName("tutorial01.xlsx")
+$freeFile = $excel->fileName("14.xlsx")
     ->header(['name', 'money']);
 
 for($index = 1; $index < 10; $index++) {
@@ -24,7 +24,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/14.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/14.xlsx"

+ 3 - 3
tests/015.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName("tutorial01.xlsx")
+$filePath = $excel->fileName("15.xlsx")
     ->header(['name', 'age'])
     ->data([
         ['one', 10],
@@ -21,7 +21,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/15.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/15.xlsx"

+ 3 - 3
tests/016.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName("tutorial01.xlsx")
+$filePath = $excel->fileName("16.xlsx")
     ->mergeCells('A1:C1', 'Merge cells')
     ->output();
 
@@ -15,7 +15,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/16.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/16.xlsx"

+ 3 - 3
tests/018.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName("tutorial01.xlsx");
+$fileObject = $excel->fileName("18.xlsx");
 
 $fileObject->header(['name', 'age'])
     ->data([['viest', 21]])
@@ -19,7 +19,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/18.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(15) "./tests/18.xlsx"

+ 2 - 2
tests/activate_sheet.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject->fileName('tutorial.xlsx')
+$fileObject->fileName('activate_sheet.xlsx')
     ->header(['name', 'age'])
     ->data([
     ['viest', 21],
@@ -26,7 +26,7 @@ $fileObject->output();
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/activate_sheet.xlsx');
 ?>
 --EXPECT--
 bool(true)

+ 2 - 2
tests/chart_axis_name_x.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_axis_name_x.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_AREA);
@@ -22,7 +22,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_axis_name_x.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 2 - 2
tests/chart_axis_name_y.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_axis_name_y.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_AREA);
@@ -22,7 +22,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_axis_name_y.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 3 - 3
tests/chart_line.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_line.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart         = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_LINE);
@@ -32,7 +32,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_line.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(23) "./tests/chart_line.xlsx"

+ 1 - 1
tests/chart_resource.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_resource.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart         = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_LINE);

+ 2 - 2
tests/chart_series.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_series.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_COLUMN);
@@ -22,7 +22,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_series.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 2 - 2
tests/chart_series_name.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_series_name.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_AREA);
@@ -22,7 +22,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_series_name.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 2 - 2
tests/chart_style.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_style.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_AREA);
@@ -23,7 +23,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_style.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 2 - 2
tests/chart_title.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('chart_title.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_AREA);
@@ -22,7 +22,7 @@ var_dump($chartResource);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/chart_title.xlsx');
 ?>
 --EXPECT--
 resource(5) of type (xlsx)

+ 3 - 3
tests/close.phpt

@@ -6,7 +6,7 @@ Check for vtiful presence
 <?php
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial01.xlsx')
+$filePath = $excel->fileName('close.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
@@ -16,7 +16,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/close.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(18) "./tests/close.xlsx"

+ 25 - 0
tests/const_memory.phpt

@@ -0,0 +1,25 @@
+--TEST--
+Check for vtiful presence
+--SKIPIF--
+<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
+--FILE--
+<?php
+$excel = new \Vtiful\Kernel\Excel([
+    'path' => './tests',
+]);
+
+$fileObject = $excel->constMemory('const_memory.xlsx');
+$fileHandle = $fileObject->getHandle();
+
+$path = $fileObject->header(['name', 'age'])
+    ->data([['viest', 21]])
+    ->output();
+
+var_dump($path);
+?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/const_memory.xlsx');
+?>
+--EXPECT--
+string(25) "./tests/const_memory.xlsx"

+ 4 - 4
tests/const_memory_index_out_range.phpt

@@ -9,7 +9,7 @@ try {
         'path' => './',
     ]);
 
-    $fileObject = $excel->constMemory('test.xlsx');
+    $fileObject = $excel->constMemory('const_memory_index_out_range.xlsx');
     $fileHandle = $fileObject->getHandle();
 
     $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -29,7 +29,7 @@ try {
         'path' => './',
     ]);
 
-    $fileObject = $excel->constMemory('test.xlsx');
+    $fileObject = $excel->constMemory('const_memory_index_out_range.xlsx');
     $fileHandle = $fileObject->getHandle();
 
     $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -49,7 +49,7 @@ try {
         'path' => './',
     ]);
 
-    $fileObject = $excel->constMemory('test.xlsx');
+    $fileObject = $excel->constMemory('const_memory_index_out_range.xlsx');
     $fileHandle = $fileObject->getHandle();
 
     $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -66,7 +66,7 @@ try {
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/const_memory_index_out_range.xlsx');
 ?>
 --EXPECT--
 170

+ 3 - 3
tests/default_format.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$excel->fileName('tutorial.xlsx');
+$excel->fileName('default_format.xlsx');
 
 $format        = new \Vtiful\Kernel\Format($excel->getHandle());
 $colorOneStyle = $format
@@ -35,7 +35,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/default_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(27) "./tests/default_format.xlsx"

+ 2 - 2
tests/exist_sheet.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject->fileName('tutorial.xlsx')
+$fileObject->fileName('exist_sheet.xlsx')
     ->addSheet('twoSheet');
 
 var_dump($fileObject->existSheet('twoSheet'));
@@ -16,7 +16,7 @@ var_dump($fileObject->existSheet('notFoundSheet'));
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/exist_sheet.xlsx');
 ?>
 --EXPECT--
 bool(true)

+ 4 - 4
tests/fix-207.phpt

@@ -10,14 +10,14 @@ skip_disable_reader();
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('fix-207.xlsx')
     ->header(['Name', 'Code'])
     ->data([
         ['Viest', '00024']
     ])
     ->output();
 
-$dataOne = $excel->openFile('tutorial.xlsx')
+$dataOne = $excel->openFile('fix-207.xlsx')
     ->openSheet()
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_STRING,
@@ -25,7 +25,7 @@ $dataOne = $excel->openFile('tutorial.xlsx')
     ])
     ->getSheetData();
 
-$dataTwo = $excel->openFile('tutorial.xlsx')
+$dataTwo = $excel->openFile('fix-207.xlsx')
     ->openSheet()
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_STRING,
@@ -38,7 +38,7 @@ var_dump($dataTwo);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/fix-207.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 3 - 3
tests/fix-243.phpt

@@ -10,14 +10,14 @@ skip_disable_reader();
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('fix-243.xlsx')
     ->header(['NumberToString', 'Number'])
     ->data([
         ['01234567', '01234567']
     ])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('fix-243.xlsx')
     ->openSheet()
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_STRING,
@@ -28,7 +28,7 @@ var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/fix-243.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 3 - 3
tests/format_align.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_align.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format     = new \Vtiful\Kernel\Format($fileHandle);
@@ -32,7 +32,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_align.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(25) "./tests/format_align.xlsx"

+ 3 - 3
tests/format_background.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_background.xlsx');
 
 $fileHandle = $fileObject->getHandle();
 
@@ -31,7 +31,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_background.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(30) "./tests/format_background.xlsx"

+ 3 - 3
tests/format_border.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_border.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $data = [
@@ -32,7 +32,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_border.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(26) "./tests/format_border.xlsx"

+ 3 - 3
tests/format_font.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_font.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -31,7 +31,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_font.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(24) "./tests/format_font.xlsx"

+ 3 - 3
tests/format_font_color.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_font_color.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format     = new \Vtiful\Kernel\Format($fileHandle);
@@ -28,7 +28,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_font_color.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(30) "./tests/format_font_color.xlsx"

+ 3 - 3
tests/format_font_size.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_font_size.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format = new \Vtiful\Kernel\Format($fileHandle);
@@ -29,7 +29,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_font_size.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(29) "./tests/format_font_size.xlsx"

+ 3 - 3
tests/format_font_strikeout.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_font_strikeout.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format = new \Vtiful\Kernel\Format($fileHandle);
@@ -28,7 +28,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_font_strikeout.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(34) "./tests/format_font_strikeout.xlsx"

+ 3 - 3
tests/format_number.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_number.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format      = new \Vtiful\Kernel\Format($fileHandle);
@@ -28,7 +28,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_number.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(26) "./tests/format_number.xlsx"

+ 3 - 3
tests/format_unlocked.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_unlocked.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format       = new \Vtiful\Kernel\Format($fileHandle);
@@ -28,7 +28,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_unlocked.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(28) "./tests/format_unlocked.xlsx"

+ 3 - 3
tests/format_wrap.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject  = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('format_wrap.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format    = new \Vtiful\Kernel\Format($fileHandle);
@@ -28,7 +28,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/format_wrap.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(24) "./tests/format_wrap.xlsx"

+ 3 - 3
tests/freeze_panes.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('freeze_panes.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $filePath = $fileObject->freezePanes(1, 0)
@@ -25,7 +25,7 @@ var_dump($fileObject->output());
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/freeze_panes.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(25) "./tests/freeze_panes.xlsx"

+ 2 - 2
tests/get_set_current_line.phpt

@@ -8,7 +8,7 @@ $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
 
-$fileObject->fileName('tutorial.xlsx')
+$fileObject->fileName('get_set_current_line.xlsx')
     ->header(['name', 'age'])
     ->setCurrentLine(2)
     ->data([
@@ -21,7 +21,7 @@ $fileObject->output();
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/get_set_current_line.xlsx');
 ?>
 --EXPECT--
 int(3)

+ 3 - 3
tests/gridlines.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName("tutorial01.xlsx");
+$fileObject = $excel->fileName("gridlines.xlsx");
 
 $fileObject->header(['name', 'age'])
     ->gridline(\Vtiful\Kernel\Excel::GRIDLINES_HIDE_ALL)
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/gridlines.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(22) "./tests/gridlines.xlsx"

+ 6 - 2
tests/header_format.phpt

@@ -10,7 +10,7 @@ $config = [
 
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName('tutorial.xlsx');
+$fileObject = $excel->fileName('header_format.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format     = new \Vtiful\Kernel\Format($fileHandle);
@@ -25,5 +25,9 @@ $setHeader = $fileObject
 
 var_dump($setHeader);
 ?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/header_format.xlsx');
+?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(26) "./tests/header_format.xlsx"

+ 3 - 3
tests/image_no_styles.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('image_no_styles.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/image_no_styles.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(28) "./tests/image_no_styles.xlsx"

+ 3 - 3
tests/image_width_height_styles.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('image_width_height_styles.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/image_width_height_styles.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(38) "./tests/image_width_height_styles.xlsx"

+ 3 - 3
tests/insert_comment.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('insert_comment.xlsx')
     ->header(['Item', 'Cost'])
     ->insertComment(0,1,'comment')
     ->output();
@@ -16,7 +16,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_comment.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(27) "./tests/insert_comment.xlsx"

+ 3 - 3
tests/insert_date_custom_format.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('insert_date_custom_format.xlsx');
 
 $filePath = $fileObject->header(['date'])
     ->insertDate(1, 0, time(), 'mmm d yyyy hh:mm AM/PM')
@@ -19,7 +19,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_date_custom_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(38) "./tests/insert_date_custom_format.xlsx"

+ 3 - 3
tests/insert_date_default_format.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('insert_date_default_format.xlsx');
 
 $filePath = $fileObject->header(['date'])
     ->insertDate(1, 0, time())
@@ -19,7 +19,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_date_default_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(39) "./tests/insert_date_default_format.xlsx"

+ 3 - 3
tests/insert_date_resource_format.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('insert_date_resource_format.xlsx');
 
 $fileHandle = $fileObject->getHandle();
 
@@ -24,7 +24,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_date_resource_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(40) "./tests/insert_date_resource_format.xlsx"

+ 3 - 3
tests/insert_text_resource_format.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$textFile = $excel->fileName("tutorial01.xlsx")
+$textFile = $excel->fileName("insert_text_resource_format.xlsx")
     ->header(['name', 'age']);
 
 $fileHandle = $textFile->getHandle();
@@ -26,7 +26,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/insert_text_resource_format.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(40) "./tests/insert_text_resource_format.xlsx"

+ 3 - 3
tests/insert_url_format.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('insert_url_format.xlsx');
 $fileHandle = $fileObject->getHandle();
 
 $format     = new \Vtiful\Kernel\Format($fileHandle);
@@ -30,7 +30,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_url_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(30) "./tests/insert_url_format.xlsx"

+ 3 - 3
tests/insert_url_no_format.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('insert_url_no_format.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/insert_url_no_format.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(33) "./tests/insert_url_no_format.xlsx"

+ 3 - 3
tests/margins.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('margins.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -25,7 +25,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/margins.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(20) "./tests/margins.xlsx"

+ 3 - 3
tests/merge_cell_type_writer.phpt

@@ -10,13 +10,13 @@ skip_disable_reader();
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName("tutorial.xlsx")
+$filePath = $excel->fileName("merge_cell_type_writer.xlsx")
     ->mergeCells('A1:C1', 1)
     ->mergeCells('A2:D2', '2')
     ->mergeCells('A3:E3', 3.001)
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('merge_cell_type_writer.xlsx')
     ->openSheet()
     ->getSheetData();
 
@@ -24,7 +24,7 @@ var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/merge_cell_type_writer.xlsx');
 ?>
 --EXPECT--
 array(3) {

+ 3 - 3
tests/multiple_file.phpt

@@ -13,7 +13,7 @@ $lastFilePath = NULL;
 for ($index = 0; $index < 100; $index++) {
     $fileObject = new \Vtiful\Kernel\Excel($config);
 
-    $fileObject = $fileObject->fileName('tutorial' . $index . '.xlsx');
+    $fileObject = $fileObject->fileName('multiple_file' . $index . '.xlsx');
     $fileHandle = $fileObject->getHandle();
 
     $format     = new \Vtiful\Kernel\Format($fileHandle);
@@ -37,8 +37,8 @@ var_dump($lastFilePath);
 --CLEAN--
 <?php
 for ($index = 0; $index < 100; $index++) {
-    @unlink(__DIR__ . '/tutorial' . $index . '.xlsx');
+    @unlink(__DIR__ . '/multiple_file' . $index . '.xlsx');
 }
 ?>
 --EXPECT--
-string(23) "./tests/tutorial99.xlsx"
+string(28) "./tests/multiple_file99.xlsx"

+ 4 - 4
tests/open_xlsx_file.phpt

@@ -9,17 +9,17 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_file.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx');
+$data = $excel->openFile('open_xlsx_file.xlsx');
 
 var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_file.xlsx');
 ?>
 --EXPECT--
 object(Vtiful\Kernel\Excel)#1 (3) {
@@ -29,7 +29,7 @@ object(Vtiful\Kernel\Excel)#1 (3) {
     string(7) "./tests"
   }
   ["fileName":"Vtiful\Kernel\Excel":private]=>
-  string(21) "./tests/tutorial.xlsx"
+  string(27) "./tests/open_xlsx_file.xlsx"
   ["read_row_type":"Vtiful\Kernel\Excel":private]=>
   NULL
 }

+ 5 - 3
tests/open_xlsx_get_data.phpt

@@ -9,17 +9,19 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_get_data.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')->openSheet()->getSheetData();
+$data = $excel->openFile('open_xlsx_get_data.xlsx')
+    ->openSheet()
+    ->getSheetData();
 
 var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_get_data.xlsx');
 ?>
 --EXPECT--
 array(1) {

+ 6 - 6
tests/open_xlsx_get_data_skip_empty.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_get_data_skip_empty.xlsx')
     ->header(['', 'Cost'])
     ->data([
         [],
@@ -17,25 +17,25 @@ $filePath = $excel->fileName('tutorial.xlsx')
     ])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS)
     ->getSheetData();
 
 var_dump($data);
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_ROW)
     ->getSheetData();
 
 var_dump($data);
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS|\Vtiful\Kernel\Excel::SKIP_EMPTY_ROW)
     ->getSheetData();
 
 var_dump($data);
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_VALUE)
     ->getSheetData();
 
@@ -43,7 +43,7 @@ var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_get_data_skip_empty.xlsx');
 ?>
 --EXPECT--
 array(3) {

+ 0 - 4
tests/open_xlsx_get_data_skip_hidden_rows.phpt

@@ -22,10 +22,6 @@ $data = $excel->openFile('hidden_row.xlsx')
 
 var_dump($data);
 ?>
---CLEAN--
-<?php
-@unlink(__DIR__ . '/tutorial.xlsx');
-?>
 --EXPECT--
 array(4) {
   [0]=>

+ 3 - 3
tests/open_xlsx_get_data_skip_rows.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('open_xlsx_get_data_skip_rows.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
     ])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_skip_rows.xlsx')
     ->openSheet()
     ->setSkipRows(3)
     ->getSheetData();
@@ -27,7 +27,7 @@ var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_get_data_skip_rows.xlsx');
 ?>
 --EXPECT--
 array(1) {

+ 3 - 3
tests/open_xlsx_get_data_with_set_type.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_get_data_with_set_type.xlsx')
     ->header(['Name', 'Age', 'Date'])
     ->data([
         ['Viest', 24]
@@ -17,7 +17,7 @@ $filePath = $excel->fileName('tutorial.xlsx')
     ->insertDate(1, 2, 1568877706)
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_get_data_with_set_type.xlsx')
     ->openSheet()
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_STRING,
@@ -30,7 +30,7 @@ var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_get_data_with_set_type.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 4 - 3
tests/open_xlsx_get_sheet_not_found_data.phpt

@@ -9,17 +9,18 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_get_sheet_not_found_data.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')->openSheet('not_found')->getSheetData();
+$data = $excel->openFile('open_xlsx_get_sheet_not_found_data.xlsx')
+    ->openSheet('not_found')->getSheetData();
 
 var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_get_sheet_not_found_data.xlsx');
 ?>
 --EXPECT--
 array(0) {

+ 5 - 5
tests/open_xlsx_global_data_type.phpt

@@ -9,14 +9,14 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_global_data_type.xlsx')
     ->header(['Item', 'Cost', 'Int', 'Double'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
     ])
     ->output();
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_global_data_type.xlsx')
     ->setGlobalType(\Vtiful\Kernel\Excel::TYPE_DOUBLE)
     ->nextCellCallback(function ($row, $cell, $data) {
         echo 'cell:' . $cell . ', row:' . $row .', data type:' . gettype($data) . PHP_EOL;
@@ -24,14 +24,14 @@ $excel->openFile('tutorial.xlsx')
 
 echo '----------------' . PHP_EOL;
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_global_data_type.xlsx')
     ->openSheet()
     ->setGlobalType(\Vtiful\Kernel\Excel::TYPE_STRING)
     ->getSheetData();
 
 var_dump($data);
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_global_data_type.xlsx')
     ->openSheet()
     ->setGlobalType(\Vtiful\Kernel\Excel::TYPE_INT);
 
@@ -44,7 +44,7 @@ var_dump($excel->nextRow());
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_global_data_type.xlsx');
 ?>
 --EXPECT--
 cell:0, row:0, data type:string

+ 3 - 3
tests/open_xlsx_next_cell_callback.phpt

@@ -9,20 +9,20 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_cell_callback.xlsx')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1'],
     ])
     ->output();
 
-$excel->openFile('tutorial.xlsx')->nextCellCallback(function ($row, $cell, $data) {
+$excel->openFile('open_xlsx_next_cell_callback.xlsx')->nextCellCallback(function ($row, $cell, $data) {
     echo 'cell:' . $cell . ', row:' . $row . ', value:' . $data . PHP_EOL;
 });
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_cell_callback.xlsx');
 ?>
 --EXPECT--
 cell:0, row:0, value:Item

+ 3 - 3
tests/open_xlsx_next_cell_callback_with_data_type.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_cell_callback_with_data_type.xlsx')
     ->header(['Item', 'Cost', 'Int', 'Double', 'Date'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -17,7 +17,7 @@ $filePath = $excel->fileName('tutorial.xlsx')
     ->insertDate(1, 4, 1568904314)
     ->output();
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_next_cell_callback_with_data_type.xlsx')
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_STRING,
         \Vtiful\Kernel\Excel::TYPE_STRING,
@@ -31,7 +31,7 @@ $excel->openFile('tutorial.xlsx')
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_cell_callback_with_data_type.xlsx');
 ?>
 --EXPECT--
 cell:0, row:0, data type:string

+ 3 - 3
tests/open_xlsx_next_row.phpt

@@ -9,14 +9,14 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_row.xlsx')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1'],
     ])
     ->output();
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_next_row.xlsx')
     ->openSheet();
 
 var_dump($excel->nextRow());
@@ -29,7 +29,7 @@ var_dump($excel->nextRow());
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 5 - 5
tests/open_xlsx_next_row_skip_empty.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_row_skip_empty.xlsx')
     ->header(['', 'Cost'])
     ->data([
         [],
@@ -19,7 +19,7 @@ $filePath = $excel->fileName('tutorial.xlsx')
 
 echo 'skip cells' . PHP_EOL;
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_next_row_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS);
 
 while (is_array($data = $excel->nextRow())) {
@@ -28,7 +28,7 @@ while (is_array($data = $excel->nextRow())) {
 
 echo 'skip row' . PHP_EOL;
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_next_row_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_ROW);
 
 while (is_array($data = $excel->nextRow())) {
@@ -37,7 +37,7 @@ while (is_array($data = $excel->nextRow())) {
 
 echo 'skip cells & row' . PHP_EOL;
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_next_row_skip_empty.xlsx')
     ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS | \Vtiful\Kernel\Excel::SKIP_EMPTY_ROW);
 
 while (is_array($data = $excel->nextRow())) {
@@ -46,7 +46,7 @@ while (is_array($data = $excel->nextRow())) {
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_skip_empty.xlsx');
 ?>
 --EXPECT--
 skip cells

+ 3 - 3
tests/open_xlsx_next_row_skip_rows.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('open_xlsx_next_row_skip_rows.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
     ])
     ->output();
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_next_row_skip_rows.xlsx')
     ->openSheet()
     ->setSkipRows(3);
 
@@ -28,7 +28,7 @@ while (is_array($data = $excel->nextRow())) {
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_skip_rows.xlsx');
 ?>
 --EXPECT--
 array(4) {

+ 3 - 3
tests/open_xlsx_next_row_with_data_type_date.phpt

@@ -12,13 +12,13 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('open_xlsx_next_row_with_data_type_date.xlsx');
 
 $filePath = $fileObject->header(['date'])
     ->insertDate(1, 0, 1568389354, 'mmm d yyyy hh:mm AM/PM')
     ->output();
 
-$fileObject->openFile('tutorial.xlsx')
+$fileObject->openFile('open_xlsx_next_row_with_data_type_date.xlsx')
     ->openSheet();
 
 var_dump($fileObject->nextRow([\Vtiful\Kernel\Excel::TYPE_STRING])); // Header
@@ -31,7 +31,7 @@ var_dump($fileObject->nextRow([\Vtiful\Kernel\Excel::TYPE_TIMESTAMP]));
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_with_data_type_date.xlsx');
 ?>
 --EXPECT--
 array(1) {

+ 3 - 3
tests/open_xlsx_next_row_with_data_type_date_array_index.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_row_with_data_type_date_array_index.xlsx')
     ->header(['', 'Cost'])
     ->data([
         [],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx')
     ->insertDate(2, 4, 1568818881)
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')
+$data = $excel->openFile('open_xlsx_next_row_with_data_type_date_array_index.xlsx')
     ->openSheet('Sheet1');
 
 while (is_array($data = $excel->nextRow([4 => \Vtiful\Kernel\Excel::TYPE_TIMESTAMP]))) {
@@ -27,7 +27,7 @@ while (is_array($data = $excel->nextRow([4 => \Vtiful\Kernel\Excel::TYPE_TIMESTA
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_with_data_type_date_array_index.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 3 - 3
tests/open_xlsx_next_row_with_data_type_string.phpt

@@ -9,14 +9,14 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_next_row_with_data_type_string.xlsx')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1'],
     ])
     ->output();
 
-$excel->openFile('tutorial.xlsx')
+$excel->openFile('open_xlsx_next_row_with_data_type_string.xlsx')
     ->openSheet();
 
 var_dump($excel->nextRow([\Vtiful\Kernel\Excel::TYPE_STRING, \Vtiful\Kernel\Excel::TYPE_STRING]));
@@ -29,7 +29,7 @@ var_dump($excel->nextRow([\Vtiful\Kernel\Excel::TYPE_STRING, \Vtiful\Kernel\Exce
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_with_data_type_string.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 3 - 3
tests/open_xlsx_next_row_with_set_type.phpt

@@ -10,7 +10,7 @@ skip_disable_reader();
 $config = ['path' => './tests'];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('open_xlsx_next_row_with_set_type.xlsx');
 
 $filePath = $fileObject->data([
         [1, 'Test']
@@ -18,7 +18,7 @@ $filePath = $fileObject->data([
     ->insertDate(1, 2, 1568389354, 'mmm d yyyy hh:mm AM/PM')
     ->output();
 
-$fileObject->openFile('tutorial.xlsx')
+$fileObject->openFile('open_xlsx_next_row_with_set_type.xlsx')
     ->openSheet()
     ->setType([
         \Vtiful\Kernel\Excel::TYPE_INT,
@@ -32,7 +32,7 @@ var_dump($fileObject->nextRow());
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_next_row_with_set_type.xlsx');
 ?>
 --EXPECT--
 array(2) {

+ 4 - 4
tests/open_xlsx_sheet.phpt

@@ -9,17 +9,17 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_sheet.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')->openSheet();
+$data = $excel->openFile('open_xlsx_sheet.xlsx')->openSheet();
 
 var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_sheet.xlsx');
 ?>
 --EXPECT--
 object(Vtiful\Kernel\Excel)#1 (3) {
@@ -29,7 +29,7 @@ object(Vtiful\Kernel\Excel)#1 (3) {
     string(7) "./tests"
   }
   ["fileName":"Vtiful\Kernel\Excel":private]=>
-  string(21) "./tests/tutorial.xlsx"
+  string(28) "./tests/open_xlsx_sheet.xlsx"
   ["read_row_type":"Vtiful\Kernel\Excel":private]=>
   NULL
 }

+ 5 - 4
tests/open_xlsx_sheet_flag.phpt

@@ -9,17 +9,18 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('open_xlsx_sheet_flag.xlsx')
     ->header(['Item', 'Cost'])
     ->output();
 
-$data = $excel->openFile('tutorial.xlsx')->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS);
+$data = $excel->openFile('open_xlsx_sheet_flag.xlsx')
+    ->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS);
 
 var_dump($data);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_sheet_flag.xlsx');
 ?>
 --EXPECT--
 object(Vtiful\Kernel\Excel)#1 (3) {
@@ -29,7 +30,7 @@ object(Vtiful\Kernel\Excel)#1 (3) {
     string(7) "./tests"
   }
   ["fileName":"Vtiful\Kernel\Excel":private]=>
-  string(21) "./tests/tutorial.xlsx"
+  string(33) "./tests/open_xlsx_sheet_flag.xlsx"
   ["read_row_type":"Vtiful\Kernel\Excel":private]=>
   NULL
 }

+ 3 - 3
tests/open_xlsx_sheet_list.phpt

@@ -9,18 +9,18 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('open_xlsx_sheet_list.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->output();
 
-$sheetList = $excel->openFile('tutorial.xlsx')->sheetList();
+$sheetList = $excel->openFile('open_xlsx_sheet_list.xlsx')->sheetList();
 
 var_dump(is_array($sheetList));
 var_dump($sheetList);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/open_xlsx_sheet_list.xlsx');
 ?>
 --EXPECT--
 bool(true)

+ 3 - 3
tests/paper.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('paper.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -24,7 +24,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/paper.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(18) "./tests/paper.xlsx"

+ 3 - 3
tests/protection.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('protection.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/protection.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(23) "./tests/protection.xlsx"

+ 3 - 3
tests/protection_password.phpt

@@ -9,7 +9,7 @@ $config = [
 ];
 
 $fileObject = new \Vtiful\Kernel\Excel($config);
-$fileObject = $fileObject->fileName('tutorial.xlsx');
+$fileObject = $fileObject->fileName('protection_password.xlsx');
 
 $filePath = $fileObject->header(['name', 'age'])
     ->data([
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/protection_password.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(32) "./tests/protection_password.xlsx"

+ 3 - 3
tests/sheet_add.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName("tutorial01.xlsx");
+$fileObject = $excel->fileName("sheet_add.xlsx");
 
 $fileObject->header(['name', 'age'])
     ->data([['viest', 21]]);
@@ -22,7 +22,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/sheet_add.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(22) "./tests/sheet_add.xlsx"

+ 3 - 3
tests/sheet_checkout.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName("tutorial01.xlsx");
+$fileObject = $excel->fileName("sheet_checkout.xlsx");
 
 $fileObject->header(['name', 'age'])
     ->data([
@@ -29,7 +29,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/sheet_checkout.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(27) "./tests/sheet_checkout.xlsx"

+ 3 - 3
tests/show_comment.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel  = new \Vtiful\Kernel\Excel($config);
 
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('show_comment.xlsx')
     ->header(['Item', 'Cost'])
     ->insertComment(0,1,'comment')
     ->showComment()
@@ -17,7 +17,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/show_comment.xlsx');
 ?>
 --EXPECT--
-string(21) "./tests/tutorial.xlsx"
+string(25) "./tests/show_comment.xlsx"

+ 6 - 2
tests/validation_limiting_input_to_a_value_in_a_dropdown_list.phpt

@@ -12,14 +12,18 @@ $validation->validationType(\Vtiful\Kernel\Validation::TYPE_LIST)
     ->valueList(['wjx', 'viest']);
 
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('validation_limiting_input_to_a_value_in_a_dropdown_list.xlsx')
     ->validation('A1', $validation->toResource())
     ->output();
 
 var_dump($validation, $filePath);
 ?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/validation_limiting_input_to_a_value_in_a_dropdown_list.xlsx');
+?>
 --EXPECT--
 object(Vtiful\Kernel\Validation)#1 (0) {
 }
-string(21) "./tests/tutorial.xlsx"
+string(68) "./tests/validation_limiting_input_to_a_value_in_a_dropdown_list.xlsx"
 

+ 6 - 2
tests/validation_limiting_input_to_an_integer_greater_than_a_fixed_value.phpt

@@ -12,15 +12,19 @@ $validation->validationType(\Vtiful\Kernel\Validation::TYPE_INTEGER)
     ->valueNumber(20);
 
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('validation_limiting_input_to_an_integer_greater_than_a_fixed_value.xlsx')
     ->validation('A1', $validation->toResource())
     ->insertText(0, 0, 21)
     ->output();
 
 var_dump($validation, $filePath);
 ?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/validation_limiting_input_to_an_integer_greater_than_a_fixed_value.xlsx');
+?>
 --EXPECT--
 object(Vtiful\Kernel\Validation)#1 (0) {
 }
-string(21) "./tests/tutorial.xlsx"
+string(79) "./tests/validation_limiting_input_to_an_integer_greater_than_a_fixed_value.xlsx"
 

+ 6 - 2
tests/validation_limiting_input_to_an_integer_in_a_fixed_range.phpt

@@ -13,7 +13,7 @@ $validation->validationType(\Vtiful\Kernel\Validation::TYPE_INTEGER)
     ->maximumNumber(10);
 
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('validation_limiting_input_to_an_integer_in_a_fixed_range.xlsx')
     ->header(['Value'])
     ->validation('A1', $validation->toResource())
     ->insertText(0, 0, 20)
@@ -21,8 +21,12 @@ $filePath = $excel->fileName('tutorial.xlsx')
 
 var_dump($validation, $filePath);
 ?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/validation_limiting_input_to_an_integer_in_a_fixed_range.xlsx');
+?>
 --EXPECT--
 object(Vtiful\Kernel\Validation)#1 (0) {
 }
-string(21) "./tests/tutorial.xlsx"
+string(69) "./tests/validation_limiting_input_to_an_integer_in_a_fixed_range.xlsx"
 

+ 6 - 2
tests/validation_limiting_input_to_an_integer_outside_a_fixed_range.phpt

@@ -13,7 +13,7 @@ $validation->validationType(\Vtiful\Kernel\Validation::TYPE_INTEGER)
     ->maximumFormula('=B1');
 
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx')
+$filePath = $excel->fileName('validation_limiting_input_to_an_integer_outside_a_fixed_range.xlsx')
     ->header([1, 10])
     ->validation('C1', $validation->toResource())
     ->insertText(0, 2, 20)
@@ -21,8 +21,12 @@ $filePath = $excel->fileName('tutorial.xlsx')
 
 var_dump($validation, $filePath);
 ?>
+--CLEAN--
+<?php
+@unlink(__DIR__ . '/validation_limiting_input_to_an_integer_outside_a_fixed_range.xlsx');
+?>
 --EXPECT--
 object(Vtiful\Kernel\Validation)#1 (0) {
 }
-string(21) "./tests/tutorial.xlsx"
+string(74) "./tests/validation_limiting_input_to_an_integer_outside_a_fixed_range.xlsx"
 

+ 2 - 2
tests/writer_exception.phpt

@@ -9,7 +9,7 @@ Check for vtiful presence
 
         $fileObject = new \Vtiful\Kernel\Excel($config);
 
-        $fileObject->constMemory('tutorial.xlsx', 'DemoSheet')
+        $fileObject->constMemory('writer_exception.xlsx', 'DemoSheet')
             ->insertText(1, 0, 'viest')
             ->insertText(0, 0, 'viest');
     } catch (\Vtiful\Kernel\Exception $exception) {
@@ -19,7 +19,7 @@ Check for vtiful presence
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/writer_exception.xlsx');
 ?>
 --EXPECT--
 23

+ 3 - 3
tests/xlsx_to_csv.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv.xlsx')
     ->openSheet()
     ->putCSV($fp);
 
@@ -26,7 +26,7 @@ var_dump($csvResult);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 3 - 3
tests/xlsx_to_csv_callback.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv_callback.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_callback.xlsx')
     ->openSheet()
     ->putCSVCallback(function($row){
         return $row;
@@ -35,7 +35,7 @@ var_dump(fgetcsv($fp));
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv_callback.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 3 - 3
tests/xlsx_to_csv_callback_custom_delimiter.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv_callback_custom_delimiter.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_callback_custom_delimiter.xlsx')
     ->openSheet()
     ->putCSVCallback(function($row){
         return $row;
@@ -36,7 +36,7 @@ while (($data = fgetcsv($csvHandler, 1000, ';')) !== FALSE) {
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv_callback_custom_delimiter.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 3 - 3
tests/xlsx_to_csv_custom_delimiter.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv_custom_delimiter.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -18,7 +18,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_custom_delimiter.xlsx')
     ->openSheet()
     ->putCSV($fp, ';');
 
@@ -34,7 +34,7 @@ while (($data = fgetcsv($csvHandler, 1000, ';')) !== FALSE) {
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv_custom_delimiter.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 4 - 4
tests/xlsx_to_csv_skip_rows.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv_skip_rows.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -20,7 +20,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_skip_rows.xlsx')
     ->openSheet()
     ->setSkipRows(1)
     ->putCSV($fp);
@@ -32,7 +32,7 @@ var_dump(file_get_contents('./tests/file.csv'));
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_skip_rows.xlsx')
     ->openSheet()
     ->setSkipRows(2)
     ->putCSV($fp);
@@ -44,7 +44,7 @@ var_dump(file_get_contents('./tests/file.csv'));
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv_skip_rows.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 3 - 3
tests/xlsx_to_csv_skip_rows_callback.phpt

@@ -9,7 +9,7 @@ skip_disable_reader();
 <?php
 $config   = ['path' => './tests'];
 $excel    = new \Vtiful\Kernel\Excel($config);
-$filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
+$filePath = $excel->fileName('xlsx_to_csv_skip_rows_callback.xlsx', 'TestSheet1')
     ->header(['Item', 'Cost'])
     ->data([
         ['Item_1', 'Cost_1', 10, 10.9999995],
@@ -20,7 +20,7 @@ $filePath = $excel->fileName('tutorial.xlsx', 'TestSheet1')
 
 $fp = fopen('./tests/file.csv', 'w');
 
-$csvResult = $excel->openFile('tutorial.xlsx')
+$csvResult = $excel->openFile('xlsx_to_csv_skip_rows_callback.xlsx')
     ->openSheet()
     ->setSkipRows(3)
     ->putCSVCallback(function($row){
@@ -34,7 +34,7 @@ var_dump(file_get_contents('./tests/file.csv'));
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial.xlsx');
+@unlink(__DIR__ . '/xlsx_to_csv_skip_rows_callback.xlsx');
 @unlink(__DIR__ . '/file.csv');
 ?>
 --EXPECT--

+ 3 - 3
tests/zoom.phpt

@@ -7,7 +7,7 @@ Check for vtiful presence
 $config = ['path' => './tests'];
 $excel = new \Vtiful\Kernel\Excel($config);
 
-$fileObject = $excel->fileName("tutorial01.xlsx");
+$fileObject = $excel->fileName("zoom.xlsx");
 
 $fileObject->header(['name', 'age'])
     ->zoom(100)
@@ -23,7 +23,7 @@ var_dump($filePath);
 ?>
 --CLEAN--
 <?php
-@unlink(__DIR__ . '/tutorial01.xlsx');
+@unlink(__DIR__ . '/zoom.xlsx');
 ?>
 --EXPECT--
-string(23) "./tests/tutorial01.xlsx"
+string(17) "./tests/zoom.xlsx"