cvs: pear /MDB/tests test_setup.php.dist

From: Date: Mon, 07 Feb 2005 10:47:08 +0000
Subject: cvs: pear /MDB/tests test_setup.php.dist
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29164@lists.php.net to get a copy of this message
lsmith Mon Feb 7 05:47:08 2005 EDT Modified files: /pear/MDB/tests test_setup.php.dist Log: - reorganized to make enabling and disabling of db backends eaiser http://cvs.php.net/diff.php/pear/MDB/tests/test_setup.php.dist?r1=1.9&r2=1.10&ty=u Index: pear/MDB/tests/test_setup.php.dist diff -u pear/MDB/tests/test_setup.php.dist:1.9 pear/MDB/tests/test_setup.php.dist:1.10 --- pear/MDB/tests/test_setup.php.dist:1.9 Fri Oct 1 16:43:57 2004 +++ pear/MDB/tests/test_setup.php.dist Mon Feb 7 05:47:08 2005 @@ -1,10 +1,5 @@ <?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', @@ -12,28 +7,79 @@ '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)); -?> \ No newline at end of file + +?>

« previous php.pear.cvs (#29164) next »