dba_db1.phpt 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --TEST--
  2. DBA DB1 handler test
  3. --EXTENSIONS--
  4. dba
  5. --SKIPIF--
  6. <?php
  7. $handler = 'db1';
  8. require_once __DIR__ .'/skipif.inc';
  9. ?>
  10. --FILE--
  11. <?php
  12. $handler = 'db1';
  13. require_once __DIR__ .'/test.inc';
  14. require_once __DIR__ .'/dba_handler.inc';
  15. ?>
  16. --EXPECT--
  17. database handler: db1
  18. 3NYNYY
  19. Content String 2
  20. Content 2 replaced
  21. Read during write: not allowed
  22. "key number 6" written
  23. Failed to write "key number 6" 2nd time
  24. Content 2 replaced 2nd time
  25. The 6th value
  26. array(3) {
  27. ["key number 6"]=>
  28. string(13) "The 6th value"
  29. ["key2"]=>
  30. string(27) "Content 2 replaced 2nd time"
  31. ["key5"]=>
  32. string(23) "The last content string"
  33. }
  34. --NO-LOCK--
  35. 3NYNYY
  36. Content String 2
  37. Content 2 replaced
  38. Read during write: not allowed
  39. "key number 6" written
  40. Failed to write "key number 6" 2nd time
  41. Content 2 replaced 2nd time
  42. The 6th value
  43. array(3) {
  44. ["key number 6"]=>
  45. string(13) "The 6th value"
  46. ["key2"]=>
  47. string(27) "Content 2 replaced 2nd time"
  48. ["key5"]=>
  49. string(23) "The last content string"
  50. }