home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / 05sequences.phpt < prev    next >
Encoding:
Text File  |  2004-03-24  |  460 b   |  26 lines

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