home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / 02fetch.phpt < prev    next >
Encoding:
Text File  |  2004-03-24  |  1.1 KB  |  39 lines

  1. --TEST--
  2. DB_driver::fetch
  3. --SKIPIF--
  4. <?php chdir(dirname(__FILE__)); require_once './skipif.inc'; ?>
  5. --FILE--
  6. <?php
  7. require_once './mktable.inc';
  8. require_once '../fetchmodes.inc';
  9. ?>
  10. --EXPECT--
  11. testing fetchrow:
  12. row 1: 42, bing, This is a test, 1999-11-21
  13. row 2: 1, one, One, 2001-02-16
  14. row 3: 2, two, Two, 2001-02-15
  15. row 4: 3, three, Three, 2001-02-14
  16. row 5: NULL
  17. testing fetchmodes: fetchrow default default, portability mode DB_PORTABILITY_ALL ^ DB_PORTABILITY_RTRIM
  18. 0 1 2 3
  19. output matched expected format
  20. testing fetchmodes: fetchinto default default
  21. 0 1 2 3
  22. 42 bing This is a test 1999-11-21
  23. testing fetchmodes: fetchrow ordered default
  24. 0 1 2 3
  25. testing fetchmodes: fetchrow assoc default
  26. a b c d
  27. testing fetchmodes: fetchrow ordered default with assoc specified
  28. a b c d
  29. testing fetchmodes: fetchrow assoc default with ordered specified
  30. 0 1 2 3
  31. testing fetchmodes: fetchinto ordered default
  32. 0 1 2 3
  33. testing fetchmodes: fetchinto assoc default
  34. a b c d
  35. testing fetchmodes: fetchinto ordered default with assoc specified
  36. a b c d
  37. testing fetchmodes: fetchinto assoc default with ordered specified
  38. 0 1 2 3
  39.