1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00
Files
archived-php-src/ext/db/tests/002.phpt
Marcus Boerger 376dcd80bb Updated tests
2002-10-22 18:40:30 +00:00

18 lines
364 B
PHP

--TEST--
DBM Insert/Fetch Test
--SKIPIF--
<?php if (!extension_loaded("db")) print "skip";?>
--FILE--
<?php
require_once('test.inc');
if (dbmopen($db_file, "n")) {
dbminsert($db_file, "key1", "This is a test insert");
echo dbmfetch($db_file, "key1");
dbmclose($db_file);
} else {
echo "Error creating database\n";
}
?>
--EXPECT--
This is a test insert