home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / 05sequences.phpt < prev    next >
Encoding:
Text File  |  2004-10-01  |  515 b   |  29 lines

  1. --TEST--
  2. DB_driver::sequences
  3. --INI--
  4. error_reporting = 2047
  5. --SKIPIF--
  6. <?php
  7. error_reporting(E_ALL);
  8. chdir(dirname(__FILE__));
  9. require_once './skipif.inc';
  10. $tableInfo = $db->dropSequence('ajkdslfajoijkadie');
  11. if (DB::isError($tableInfo) && $tableInfo->code == DB_ERROR_NOT_CAPABLE) {
  12.     die("skip $tableInfo->message");
  13. }
  14. ?>
  15. --FILE--
  16. <?php
  17. require_once './connect.inc';
  18. require_once '../sequences.inc';
  19. ?>
  20. --EXPECT--
  21. DB Error: no such table
  22. DB Error: no such table <- good error catched
  23. a=1
  24. b=2
  25. b-a=1
  26. c=1
  27. d=1
  28. e=1
  29.