Permalink
Browse files

- reorganized to make enabling and disabling of db backends eaiser

git-svn-id: http://svn.php.net/repository/pear/packages/MDB/trunk@179055 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent cefce95 commit f01359400e372dc834b660d3ae66e85d9cdc8a17 Lukas Smith committed Feb 7, 2005
Showing with 57 additions and 11 deletions.
  1. +57 −11 tests/test_setup.php.dist
View
68 tests/test_setup.php.dist
@@ -1,39 +1,85 @@
<?php
-// if you get a max execution exceed error uncomment the following line
-// and modify the time limit as needed
-//set_time_limit(100);
-
-
$testcases = array(
'MDB_manager_testcase',
'MDB_api_testcase',
'MDB_usage_testcase',
'MDB_bugs_testcase',
);
-$dbarray[] = array(
+// use a user that has full permissions on a database named "driver_test"
+$mysql = array(
'dsn' => array(
- 'phptype' => 'pgsql',
+ 'phptype' => 'mysql',
'username' => 'username',
'password' => 'password',
'hostspec' => 'hostname',
),
'options' => array(
+ 'UseTransactions' => TRUE
)
);
-$dbarray[] = array(
+
+$pgsql = array(
'dsn' => array(
- 'phptype' => 'mysql',
+ 'phptype' => 'pgsql',
'username' => 'username',
'password' => 'password',
'hostspec' => 'hostname',
+ )
+);
+
+$oci8 = array(
+ 'dsn' => array(
+ 'phptype' => 'oci8',
+ 'username' => '',
+ 'password' => 'password',
+ 'hostspec' => 'hostname',
),
'options' => array(
- 'UseTransactions' => TRUE
+ 'DBAUser' => 'username',
+ 'DBApassword' => 'password'
)
);
+// must be a user with system administrator privileges
+$mssql = array(
+ 'dsn' => array(
+ 'phptype' => 'mssql',
+ 'username' => 'username',
+ 'password' => 'password',
+ 'hostspec' => 'hostname',
+ )
+);
+
+$fbsql] = array(
+ 'dsn' => array(
+ 'phptype' => 'fbsql',
+ 'username' => 'username',
+ 'password' => 'password',
+ 'hostspec' => 'hostname',
+ )
+);
+
+
+$ibase = array(
+ 'dsn' => array(
+ 'phptype' => 'ibase',
+ 'username' => 'username',
+ 'password' => 'password',
+ 'hostspec' => 'hostname',
+ )
+);
+
+$dbarray = array();
+#$dbarray[] = $mysql;
+#$dbarray[] = $pgsql;
+#$dbarray[] = $oci8;
+#$dbarray[] = $mssql;
+#$dbarray[] = $fbsql;
+#$dbarray[] = $ibase;
+
// you may need to uncomment the line and modify the multiplier as you see fit
#set_time_limit(60*count($dbarray));
-?>
+
+?>

0 comments on commit f013594

Please sign in to comment.