home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / 02fetch.phpt < prev    next >
Encoding:
Text File  |  2004-10-01  |  1.1 KB  |  41 lines

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