diff options
| author | SVN Migration <svn@php.net> | 2003-02-27 17:43:39 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2003-02-27 17:43:39 +0000 |
| commit | 078bcec0997ad0e07b720c43cc9e6d0e046a75ab (patch) | |
| tree | 36cb0f6be2ef078fe3374de8c087b93ecf82f812 /ext/dbx/tests/003.phpt | |
| parent | fd61f69077f6156ca71dde60ecfd9ed9765a02db (diff) | |
| download | php-git-PHP-5.tar.gz | |
This commit was manufactured by cvs2svn to create branch 'PHP_5'.PHP-5
Diffstat (limited to 'ext/dbx/tests/003.phpt')
| -rw-r--r-- | ext/dbx/tests/003.phpt | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/ext/dbx/tests/003.phpt b/ext/dbx/tests/003.phpt deleted file mode 100644 index 76fda4caf2..0000000000 --- a/ext/dbx/tests/003.phpt +++ /dev/null @@ -1,107 +0,0 @@ ---TEST-- -dbx_connect ---SKIPIF-- -<?php -include_once("skipif.inc"); -?> ---FILE-- -<?php -include_once("dbx_test.p"); -$nonexisting_database="nonexisting_database"; -$nonexisting_username="nonexisting_username"; -$nonexisting_password="nonexisting_password"; -$dlo = dbx_connect($module_name, $host, $database, $username, $password); -if ($dlo!=0) { - print('connect using string ok'."\n"); - dbx_close($dlo); - } -$dlo = dbx_connect($module, $host, $database, $username, $password); -if ($dlo!=0) { - print('connect using constant ok'."\n"); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $nonexisting_database, $username, $password); -if ($dlo==0) { - print('connect to non-existing database failed, so it\'s ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $database, $nonexisting_username, $nonexisting_password); -if ($dlo==0) { - print('connect with false username/password combi failed, so it\'s ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo = dbx_connect($module_name, $host, $database, $username, $password, DBX_PERSISTENT); -if ($dlo!=0) { - print('persistent connect using string ok'."\n"); - dbx_close($dlo); - } -$dlo = dbx_connect($module, $host, $database, $username, $password, DBX_PERSISTENT); -if ($dlo!=0) { - print('persistent connect using constant ok'."\n"); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $nonexisting_database, $username, $password, DBX_PERSISTENT); -if ($dlo==0) { - print('persistent connect to non-existing database failed, so it\'s ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $database, $nonexisting_username, $nonexisting_password, DBX_PERSISTENT); -if ($dlo==0) { - print('persistent connect with false username/password combi failed, so it\'s ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $database, $username, $password, DBX_PERSISTENT, "12many"); -if ($dlo==0) { - print('too many parameters: connect failure works ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo = @dbx_connect($module, $host, $database, $username); -if ($dlo==0) { - print('too few parameters: connect failure works ok'."\n"); - } -else { - print_r($dlo); - dbx_close($dlo); - } -$dlo1 = dbx_connect($module, $host, $database, $username, $password); -$dlo2 = dbx_connect($module, $host, $database, $username, $password); -if ($dlo1!=0 && $dlo2!=0) { - print('multiple connects ok'."\n"); - dbx_close($dlo1); - dbx_close($dlo2); - } -$dlo1 = dbx_connect($module, $host, $database, $username, $password); -$dlo2 = @dbx_connect($module, $host, $nonexisting_database, $username, $password); -if ($dlo1!=0 && $dlo2==0) { - print('multiple connects (2nd fails on database-name) ok'."\n"); - dbx_close($dlo1); - } -?> ---EXPECT-- -connect using string ok -connect using constant ok -connect to non-existing database failed, so it's ok -connect with false username/password combi failed, so it's ok -persistent connect using string ok -persistent connect using constant ok -persistent connect to non-existing database failed, so it's ok -persistent connect with false username/password combi failed, so it's ok -too many parameters: connect failure works ok -too few parameters: connect failure works ok -multiple connects ok -multiple connects (2nd fails on database-name) ok
\ No newline at end of file |
