PATH:
opt
/
alt
/
tests
/
alt-php55-pecl-dbase_5.1.1-1.el8
/
tests
--TEST-- dbase_get_header_info(): basic functionality --SKIPIF-- <?php if (!extension_loaded('dbase')) die('skip dbase extension not available'); ?> --FILE-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'dbase_get_header_info_basic.dbf'; copy(__DIR__ . DIRECTORY_SEPARATOR . 'example.dbf', $filename); $db = dbase_open($filename, 0); var_dump($db); var_dump(dbase_get_header_info($db)); var_dump(dbase_close($db)); ?> ===DONE=== --EXPECTF-- int(%d) array(5) { [0]=> array(6) { ["name"]=> string(2) "ID" ["type"]=> string(6) "number" ["length"]=> int(5) ["precision"]=> int(0) ["format"]=> string(3) "%5s" ["offset"]=> int(1) } [1]=> array(6) { ["name"]=> string(4) "NAME" ["type"]=> string(9) "character" ["length"]=> int(25) ["precision"]=> int(0) ["format"]=> string(5) "%-25s" ["offset"]=> int(6) } [2]=> array(6) { ["name"]=> string(8) "RELEASED" ["type"]=> string(4) "date" ["length"]=> int(8) ["precision"]=> int(0) ["format"]=> string(3) "%8s" ["offset"]=> int(31) } [3]=> array(6) { ["name"]=> string(8) "SUPORTED" ["type"]=> string(7) "boolean" ["length"]=> int(1) ["precision"]=> int(0) ["format"]=> string(3) "%1s" ["offset"]=> int(39) } [4]=> array(6) { ["name"]=> string(5) "PRICE" ["type"]=> string(6) "number" ["length"]=> int(10) ["precision"]=> int(2) ["format"]=> string(4) "%10s" ["offset"]=> int(40) } } bool(true) ===DONE=== --CLEAN-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'dbase_get_header_info_basic.dbf'; unlink($filename); ?>
[-] dbase_delete_record_basic.phpt
[edit]
[-] dbase_replace_record_variation1.phpt
[edit]
[-] dbase_add_record_basic.phpt
[edit]
[-] dbase_replace_record_variation2.phpt
[edit]
[-] dbase_create_error.phpt
[edit]
[-] dbase_get_record_with_names_basic.phpt
[edit]
[-] bug52112.phpt
[edit]
[-] dbase_create_basic.phpt
[edit]
[-] 001.phpt
[edit]
[-] dbase_numrecords_basic.phpt
[edit]
[-] example.dbf
[edit]
[-] dbase_add_record_variation1.phpt
[edit]
[-] bug39305.phpt
[edit]
[-] dbase_get_header_info_basic.phpt
[edit]
[-] 002.phpt
[edit]
[-] example.php
[edit]
[-] bug73391.phpt
[edit]
[-] bug31754.phpt
[edit]
[-] dbase_get_record_basic.phpt
[edit]
[-] dbase_pack_basic.phpt
[edit]
[-] dbase_numfields_basic.phpt
[edit]
[-] dbase_add_record_variation2.phpt
[edit]
[+]
..
[-] dbase_replace_record_basic.phpt
[edit]