cvs: php4 /pear/DB/tests db_parsedsn.phpt
| From: | Thomas V.V.Cox | Date: | Sun, 13 Jan 2002 19:27:27 +0000 |
| Subject: | cvs: php4 /pear/DB/tests db_parsedsn.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1928@lists.php.net to get a copy of this message | ||
cox Sun Jan 13 14:27:27 2002 EDT
Modified files:
/php4/pear/DB/tests db_parsedsn.phpt
Log:
Two tests more
Index: php4/pear/DB/tests/db_parsedsn.phpt
diff -u php4/pear/DB/tests/db_parsedsn.phpt:1.5 php4/pear/DB/tests/db_parsedsn.phpt:1.6
--- php4/pear/DB/tests/db_parsedsn.phpt:1.5 Sun Jan 13 13:28:10 2002
+++ php4/pear/DB/tests/db_parsedsn.phpt Sun Jan 13 14:27:27 2002
@@ -26,6 +26,8 @@
test("pgsql://user@unix+localhost/pear"); // deprecated
test("ibase://user%40domain:password@host");
test("ibase://user@domain:pass@word@/database"); // also supported
+test("ifx://user@domain:pass@word@host.com//usr/db/general.db");
+test('ifx://remote.host.com/c:\windows\my.db');
// new formats
test("odbc(solid)://foo:bar@localhost:1313");
@@ -169,6 +171,32 @@
[port] =>
[socket] =>
[database] => database
+)
+DSN: ifx://user@domain:pass@word@host.com//usr/db/general.db
+Array
+(
+ [phptype] => ifx
+ [dbsyntax] => ifx
+ [username] => user@domain
+ [password] => pass@word
+ [protocol] => tcp
+ [hostspec] => host.com
+ [port] =>
+ [socket] =>
+ [database] => /usr/db/general.db
+)
+DSN: ifx://remote.host.com/c:\windows\my.db
+Array
+(
+ [phptype] => ifx
+ [dbsyntax] => ifx
+ [username] =>
+ [password] =>
+ [protocol] => tcp
+ [hostspec] => remote.host.com
+ [port] =>
+ [socket] =>
+ [database] => c:\windows\my.db
)
DSN: odbc(solid)://foo:bar@localhost:1313
Array