mirror of
https://github.com/php/php-src.git
synced 2024-10-05 00:36:17 +00:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
20 lines
545 B
PHP
20 lines
545 B
PHP
--TEST--
|
|
DBM Multiple Insert/Fetch Test
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
dbmopen("./test.dbm","n");
|
|
dbminsert("./test.dbm","key1","Content String 1");
|
|
dbminsert("./test.dbm","key2","Content String 2");
|
|
dbminsert("./test.dbm","key3","Third Content String");
|
|
dbminsert("./test.dbm","key4","Another Content String");
|
|
dbminsert("./test.dbm","key5","The last content string");
|
|
$a = dbmfetch("./test.dbm","key4");
|
|
$b = dbmfetch("./test.dbm","key2");
|
|
dbmclose("./test.dbm");
|
|
echo "$a $b";
|
|
?>
|
|
--EXPECT--
|
|
Another Content String Content String 2
|