mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Import from DCARF SVN
This commit is contained in:
28
include/pear/tests/driver/05sequences.phpt
Normal file
28
include/pear/tests/driver/05sequences.phpt
Normal file
@@ -0,0 +1,28 @@
|
||||
--TEST--
|
||||
DB_driver::sequences
|
||||
--INI--
|
||||
error_reporting = 2047
|
||||
--SKIPIF--
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
chdir(dirname(__FILE__));
|
||||
require_once './skipif.inc';
|
||||
$tableInfo = $db->dropSequence('ajkdslfajoijkadie');
|
||||
if (DB::isError($tableInfo) && $tableInfo->code == DB_ERROR_NOT_CAPABLE) {
|
||||
die("skip $tableInfo->message");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once './connect.inc';
|
||||
require_once '../sequences.inc';
|
||||
?>
|
||||
--EXPECT--
|
||||
an error is the proper response here
|
||||
an error cought by the error handler is good
|
||||
a=1
|
||||
b=2
|
||||
b-a=1
|
||||
c=1
|
||||
d=1
|
||||
e=1
|
||||
Reference in New Issue
Block a user