Skip to content

Commit b935a65

Browse files
committed
Test: read skip empty value
1 parent 3895a1d commit b935a65

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/open_xlsx_get_data_skip_empty.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ $data = $excel->openFile('tutorial.xlsx')
3333
->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_CELLS|\Vtiful\Kernel\Excel::SKIP_EMPTY_ROW)
3434
->getSheetData();
3535

36+
var_dump($data);
37+
38+
$data = $excel->openFile('tutorial.xlsx')
39+
->openSheet('Sheet1', \Vtiful\Kernel\Excel::SKIP_EMPTY_VALUE)
40+
->getSheetData();
41+
3642
var_dump($data);
3743
?>
3844
--CLEAN--
@@ -82,4 +88,19 @@ array(2) {
8288
[0]=>
8389
string(5) "viest"
8490
}
91+
}
92+
array(3) {
93+
[0]=>
94+
array(1) {
95+
[1]=>
96+
string(4) "Cost"
97+
}
98+
[1]=>
99+
array(0) {
100+
}
101+
[2]=>
102+
array(1) {
103+
[0]=>
104+
string(5) "viest"
105+
}
85106
}

0 commit comments

Comments
 (0)