php-ext-xlswriter/tests/string_from_column_index.phpt

26 lines
803 B
Plaintext
Raw Permalink 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
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(0));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(28));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(27));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(51));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(730));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(784));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(44));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(629));
var_dump(\Vtiful\Kernel\Excel::stringFromColumnIndex(513));
?>
--EXPECT--
string(1) "A"
string(2) "AC"
string(2) "AB"
string(2) "AZ"
string(3) "ABC"
string(3) "ADE"
string(2) "AS"
string(2) "XF"
string(2) "ST"