cvs: pear /DB/tests db_error.phpt db_error2.phpt db_factory.phpt db_ismanip.phpt db_parsedsn.phpt
| From: | Tomas V.V.Cox | Date: | Mon, 23 Jun 2003 00:44:54 +0000 |
| Subject: | cvs: pear /DB/tests db_error.phpt db_error2.phpt db_factory.phpt db_ismanip.phpt db_parsedsn.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-11132@lists.php.net to get a copy of this message | ||
cox Sun Jun 22 20:44:54 2003 EDT
Modified files:
/pear/DB/tests db_error.phpt db_error2.phpt db_factory.phpt
db_ismanip.phpt db_parsedsn.phpt
Log:
Fix PEAR DB include dir
Fixed print_r() output change
Index: pear/DB/tests/db_error.phpt diff -u pear/DB/tests/db_error.phpt:1.6 pear/DB/tests/db_error.phpt:1.7 --- pear/DB/tests/db_error.phpt:1.6 Sun May 26 11:38:51 2002 +++ pear/DB/tests/db_error.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB_Error Index: pear/DB/tests/db_error2.phpt diff -u pear/DB/tests/db_error2.phpt:1.4 pear/DB/tests/db_error2.phpt:1.5 --- pear/DB/tests/db_error2.phpt:1.4 Wed May 22 06:31:25 2002 +++ pear/DB/tests/db_error2.phpt Sun Jun 22 20:44:53 2003 @@ -2,7 +2,7 @@ DB configurable error handler test --FILE-- <?php - +include_once './include.inc'; require_once "DB.php"; error_reporting(4095); Index: pear/DB/tests/db_factory.phpt diff -u pear/DB/tests/db_factory.phpt:1.3 pear/DB/tests/db_factory.phpt:1.4 --- pear/DB/tests/db_factory.phpt:1.3 Sun May 12 03:29:24 2002 +++ pear/DB/tests/db_factory.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB_Error, DB_Warning Index: pear/DB/tests/db_ismanip.phpt diff -u pear/DB/tests/db_ismanip.phpt:1.3 pear/DB/tests/db_ismanip.phpt:1.4 --- pear/DB/tests/db_ismanip.phpt:1.3 Sun May 12 03:29:24 2002 +++ pear/DB/tests/db_ismanip.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB::isManip Index: pear/DB/tests/db_parsedsn.phpt diff -u pear/DB/tests/db_parsedsn.phpt:1.5 pear/DB/tests/db_parsedsn.phpt:1.6 --- pear/DB/tests/db_parsedsn.phpt:1.5 Wed May 22 08:57:10 2002 +++ pear/DB/tests/db_parsedsn.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include(dirname(__FILE__)."/../DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB::parseDSN() include_once dirname(__FILE__)."/../DB.php"; @@ -52,51 +52,51 @@ ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => - [protocol] => - [hostspec] => - [port] => - [socket] => - [database] => + [username] => + [password] => + [protocol] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: odbc(mssql) Array ( [phptype] => odbc [dbsyntax] => mssql - [username] => - [password] => - [protocol] => - [hostspec] => - [port] => - [socket] => - [database] => + [username] => + [password] => + [protocol] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: mysql://localhost Array ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => localhost - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: mysql://remote.host.com/db Array ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => remote.host.com - [port] => - [socket] => + [port] => + [socket] => [database] => db ) DSN: oci8://system:manager@ @@ -107,10 +107,10 @@ [username] => system [password] => manager [protocol] => tcp - [hostspec] => - [port] => - [socket] => - [database] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: oci8://user:pass@tns-name Array @@ -121,9 +121,9 @@ [password] => pass [protocol] => tcp [hostspec] => tns-name - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: odbc(solid)://foo:bar@tcp+localhost+1313 Array @@ -133,10 +133,10 @@ [username] => foo [password] => bar [protocol] => tcp - [hostspec] => localhost 1313 - [port] => - [socket] => - [database] => + [hostspec] => localhost+1313 + [port] => + [socket] => + [database] => ) DSN: pgsql://user@unix+localhost/pear Array @@ -144,10 +144,10 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => + [hostspec] => + [port] => [socket] => localhost [database] => pear ) @@ -160,9 +160,9 @@ [password] => password [protocol] => tcp [hostspec] => host - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: ibase://user@domain:pass@word@/database Array @@ -172,9 +172,9 @@ [username] => user@domain [password] => pass@word [protocol] => tcp - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => database ) DSN: ifx://user@domain:pass@word@host.com//usr/db/general.db @@ -186,8 +186,8 @@ [password] => pass@word [protocol] => tcp [hostspec] => host.com - [port] => - [socket] => + [port] => + [socket] => [database] => /usr/db/general.db ) DSN: ifx://remote.host.com/c:\windows\my.db @@ -195,12 +195,12 @@ ( [phptype] => ifx [dbsyntax] => ifx - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => remote.host.com - [port] => - [socket] => + [port] => + [socket] => [database] => c:\windows\my.db ) DSN: oci8://SHOOTOUT:******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS))) @@ -212,9 +212,9 @@ [password] => ****** [protocol] => tcp [hostspec] => (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS))) - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: odbc(solid)://foo:bar@localhost:1313 Array @@ -226,8 +226,8 @@ [protocol] => tcp [hostspec] => localhost [port] => 1313 - [socket] => - [database] => + [socket] => + [database] => ) DSN: pgsql://user@unix()/pear Array @@ -235,11 +235,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => pear ) DSN: mysql://user@unix(/path/to/socket)/pear @@ -248,10 +248,10 @@ [phptype] => mysql [dbsyntax] => mysql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => + [hostspec] => + [port] => [socket] => /path/to/socket [database] => pear ) @@ -261,11 +261,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => tcp - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => pear ) DSN: pgsql://user@tcp(somehost)/pear @@ -274,11 +274,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => tcp [hostspec] => somehost - [port] => - [socket] => + [port] => + [socket] => [database] => pear ) DSN: pgsql://user:pass@word@tcp(somehost:7777)/pear @@ -291,7 +291,7 @@ [protocol] => tcp [hostspec] => somehost [port] => 7777 - [socket] => + [socket] => [database] => pear ) DSN: ibase://user:pass@localhost//var/lib/dbase.dbf?role=foo @@ -303,8 +303,8 @@ [password] => pass [protocol] => tcp [hostspec] => localhost - [port] => - [socket] => + [port] => + [socket] => [database] => /var/lib/dbase.dbf [role] => foo ) @@ -313,13 +313,13 @@ ( [phptype] => dbase [dbsyntax] => dbase - [username] => - [password] => + [username] => + [password] => [protocol] => tcp - [hostspec] => - [port] => - [socket] => - [database] => + [hostspec] => + [port] => + [socket] => + [database] => [role] => foo [dialect] => bar )
Index: pear/DB/tests/db_error.phpt diff -u pear/DB/tests/db_error.phpt:1.6 pear/DB/tests/db_error.phpt:1.7 --- pear/DB/tests/db_error.phpt:1.6 Sun May 26 11:38:51 2002 +++ pear/DB/tests/db_error.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB_Error Index: pear/DB/tests/db_error2.phpt diff -u pear/DB/tests/db_error2.phpt:1.4 pear/DB/tests/db_error2.phpt:1.5 --- pear/DB/tests/db_error2.phpt:1.4 Wed May 22 06:31:25 2002 +++ pear/DB/tests/db_error2.phpt Sun Jun 22 20:44:53 2003 @@ -2,7 +2,7 @@ DB configurable error handler test --FILE-- <?php - +include_once './include.inc'; require_once "DB.php"; error_reporting(4095); Index: pear/DB/tests/db_factory.phpt diff -u pear/DB/tests/db_factory.phpt:1.3 pear/DB/tests/db_factory.phpt:1.4 --- pear/DB/tests/db_factory.phpt:1.3 Sun May 12 03:29:24 2002 +++ pear/DB/tests/db_factory.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB_Error, DB_Warning Index: pear/DB/tests/db_ismanip.phpt diff -u pear/DB/tests/db_ismanip.phpt:1.3 pear/DB/tests/db_ismanip.phpt:1.4 --- pear/DB/tests/db_ismanip.phpt:1.3 Sun May 12 03:29:24 2002 +++ pear/DB/tests/db_ismanip.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include("DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB.php // Parts tested: DB::isManip Index: pear/DB/tests/db_parsedsn.phpt diff -u pear/DB/tests/db_parsedsn.phpt:1.5 pear/DB/tests/db_parsedsn.phpt:1.6 --- pear/DB/tests/db_parsedsn.phpt:1.5 Wed May 22 08:57:10 2002 +++ pear/DB/tests/db_parsedsn.phpt Sun Jun 22 20:44:53 2003 @@ -4,7 +4,7 @@ <?php if (!@include(dirname(__FILE__)."/../DB.php")) print "skip"; ?> --FILE-- <?php // -*- C++ -*- - +include_once './include.inc'; // Test for: DB::parseDSN() include_once dirname(__FILE__)."/../DB.php"; @@ -52,51 +52,51 @@ ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => - [protocol] => - [hostspec] => - [port] => - [socket] => - [database] => + [username] => + [password] => + [protocol] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: odbc(mssql) Array ( [phptype] => odbc [dbsyntax] => mssql - [username] => - [password] => - [protocol] => - [hostspec] => - [port] => - [socket] => - [database] => + [username] => + [password] => + [protocol] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: mysql://localhost Array ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => localhost - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: mysql://remote.host.com/db Array ( [phptype] => mysql [dbsyntax] => mysql - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => remote.host.com - [port] => - [socket] => + [port] => + [socket] => [database] => db ) DSN: oci8://system:manager@ @@ -107,10 +107,10 @@ [username] => system [password] => manager [protocol] => tcp - [hostspec] => - [port] => - [socket] => - [database] => + [hostspec] => + [port] => + [socket] => + [database] => ) DSN: oci8://user:pass@tns-name Array @@ -121,9 +121,9 @@ [password] => pass [protocol] => tcp [hostspec] => tns-name - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: odbc(solid)://foo:bar@tcp+localhost+1313 Array @@ -133,10 +133,10 @@ [username] => foo [password] => bar [protocol] => tcp - [hostspec] => localhost 1313 - [port] => - [socket] => - [database] => + [hostspec] => localhost+1313 + [port] => + [socket] => + [database] => ) DSN: pgsql://user@unix+localhost/pear Array @@ -144,10 +144,10 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => + [hostspec] => + [port] => [socket] => localhost [database] => pear ) @@ -160,9 +160,9 @@ [password] => password [protocol] => tcp [hostspec] => host - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: ibase://user@domain:pass@word@/database Array @@ -172,9 +172,9 @@ [username] => user@domain [password] => pass@word [protocol] => tcp - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => database ) DSN: ifx://user@domain:pass@word@host.com//usr/db/general.db @@ -186,8 +186,8 @@ [password] => pass@word [protocol] => tcp [hostspec] => host.com - [port] => - [socket] => + [port] => + [socket] => [database] => /usr/db/general.db ) DSN: ifx://remote.host.com/c:\windows\my.db @@ -195,12 +195,12 @@ ( [phptype] => ifx [dbsyntax] => ifx - [username] => - [password] => + [username] => + [password] => [protocol] => tcp [hostspec] => remote.host.com - [port] => - [socket] => + [port] => + [socket] => [database] => c:\windows\my.db ) DSN: oci8://SHOOTOUT:******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS))) @@ -212,9 +212,9 @@ [password] => ****** [protocol] => tcp [hostspec] => (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS))) - [port] => - [socket] => - [database] => + [port] => + [socket] => + [database] => ) DSN: odbc(solid)://foo:bar@localhost:1313 Array @@ -226,8 +226,8 @@ [protocol] => tcp [hostspec] => localhost [port] => 1313 - [socket] => - [database] => + [socket] => + [database] => ) DSN: pgsql://user@unix()/pear Array @@ -235,11 +235,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => pear ) DSN: mysql://user@unix(/path/to/socket)/pear @@ -248,10 +248,10 @@ [phptype] => mysql [dbsyntax] => mysql [username] => user - [password] => + [password] => [protocol] => unix - [hostspec] => - [port] => + [hostspec] => + [port] => [socket] => /path/to/socket [database] => pear ) @@ -261,11 +261,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => tcp - [hostspec] => - [port] => - [socket] => + [hostspec] => + [port] => + [socket] => [database] => pear ) DSN: pgsql://user@tcp(somehost)/pear @@ -274,11 +274,11 @@ [phptype] => pgsql [dbsyntax] => pgsql [username] => user - [password] => + [password] => [protocol] => tcp [hostspec] => somehost - [port] => - [socket] => + [port] => + [socket] => [database] => pear ) DSN: pgsql://user:pass@word@tcp(somehost:7777)/pear @@ -291,7 +291,7 @@ [protocol] => tcp [hostspec] => somehost [port] => 7777 - [socket] => + [socket] => [database] => pear ) DSN: ibase://user:pass@localhost//var/lib/dbase.dbf?role=foo @@ -303,8 +303,8 @@ [password] => pass [protocol] => tcp [hostspec] => localhost - [port] => - [socket] => + [port] => + [socket] => [database] => /var/lib/dbase.dbf [role] => foo ) @@ -313,13 +313,13 @@ ( [phptype] => dbase [dbsyntax] => dbase - [username] => - [password] => + [username] => + [password] => [protocol] => tcp - [hostspec] => - [port] => - [socket] => - [database] => + [hostspec] => + [port] => + [socket] => + [database] => [role] => foo [dialect] => bar )