dba_lmdb.phpt 763 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. DBA 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--
  21. database handler: lmdb
  22. 3NYNYY
  23. Content String 2
  24. Content 2 replaced
  25. Read during write:%sallowed
  26. "key number 6" written
  27. Failed to write "key number 6" 2nd time
  28. Content 2 replaced 2nd time
  29. The 6th value
  30. array(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===