diff options
Diffstat (limited to 'ext/mysqli/tests/mysqli_select_db.phpt')
-rw-r--r-- | ext/mysqli/tests/mysqli_select_db.phpt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/mysqli/tests/mysqli_select_db.phpt b/ext/mysqli/tests/mysqli_select_db.phpt index 041b7fbb22..e023866c17 100644 --- a/ext/mysqli/tests/mysqli_select_db.phpt +++ b/ext/mysqli/tests/mysqli_select_db.phpt @@ -11,22 +11,10 @@ require_once('skipifconnectfailure.inc'); require_once("connect.inc"); require_once("table.inc"); - $tmp = NULL; - $link = NULL; - - if (!is_null($tmp = @mysqli_select_db())) - printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); - - if (!is_null($tmp = @mysqli_select_db($link))) - printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); - if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) printf("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n", $host, $user, $db, $port, $socket); - if (!is_null($tmp = @mysqli_select_db($link, $db, "foo"))) - printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); - /* does not make too much sense, unless we have access to at least one more database than $db */ if (!mysqli_select_db($link, $db)) printf("[005] Cannot select DB %s, [%d] %s\n", $db, mysqli_errno($link), mysqli_error($link)); |