xref: /PHP-7.2/ext/dba/tests/dba_lmdb.phpt (revision 16d7fd9d)
1--TEST--
2DBA LMDB handler test
3--SKIPIF--
4<?php
5	$handler = 'lmdb';
6	require_once dirname(__FILE__) .'/skipif.inc';
7?>
8--FILE--
9<?php
10	$handler = 'lmdb';
11	require_once dirname(__FILE__) .'/test.inc';
12	$lock_flag = ''; // lock in library
13	require_once dirname(__FILE__) .'/dba_handler.inc';
14?>
15===DONE===
16--CLEAN--
17<?php
18	require_once dirname(__FILE__) .'/clean.inc';
19?>
20--EXPECTF--
21database handler: lmdb
223NYNYY
23Content String 2
24Content 2 replaced
25Read during write:%sallowed
26"key number 6" written
27Failed to write "key number 6" 2nd time
28Content 2 replaced 2nd time
29The 6th value
30array(3) {
31  ["key number 6"]=>
32  string(13) "The 6th value"
33  ["key2"]=>
34  string(27) "Content 2 replaced 2nd time"
35  ["key5"]=>
36  string(23) "The last content string"
37}
38===DONE===
39