28 lines
508 B
Plaintext
28 lines
508 B
Plaintext
|
--TEST--
|
||
|
Check for vtiful presence
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$config = ['path' => './tests'];
|
||
|
|
||
|
$fileObject = new \Vtiful\Kernel\Excel($config);
|
||
|
|
||
|
$fileObject->fileName('get_set_current_line.xlsx')
|
||
|
->header(['name', 'age'])
|
||
|
->setCurrentLine(2)
|
||
|
->data([
|
||
|
['viest', 21],
|
||
|
]);
|
||
|
|
||
|
var_dump($fileObject->getCurrentLine());
|
||
|
|
||
|
$fileObject->output();
|
||
|
?>
|
||
|
--CLEAN--
|
||
|
<?php
|
||
|
@unlink(__DIR__ . '/get_set_current_line.xlsx');
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
int(3)
|