dba_lmdb.phpt 741 B

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