dba_inifile.phpt 1.1 KB

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