php-ext-xlswriter/tests/exist_sheet.phpt

24 lines
470 B
Plaintext
Raw Normal View History

2024-03-05 10:01:08 +08:00
--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('exist_sheet.xlsx')
->addSheet('twoSheet');
var_dump($fileObject->existSheet('twoSheet'));
var_dump($fileObject->existSheet('notFoundSheet'));
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/exist_sheet.xlsx');
?>
--EXPECT--
bool(true)
bool(false)