From 86e3fbf4669440efb7b73b1e549cf45e37cdcfe5 Mon Sep 17 00:00:00 2001 From: absci Date: Tue, 24 Jan 2023 13:22:32 -0800 Subject: [PATCH] Remove test that expect an invalid driver error appveyor have ODBC 13 installed on their test agent --- test/functional/pdo_sqlsrv/pdo_connect_driver.phpt | 12 ------------ test/functional/sqlsrv/sqlsrv_connect_driver.phpt | 10 ---------- 2 files changed, 22 deletions(-) diff --git a/test/functional/pdo_sqlsrv/pdo_connect_driver.phpt b/test/functional/pdo_sqlsrv/pdo_connect_driver.phpt index 41180117..d5fa24e9 100644 --- a/test/functional/pdo_sqlsrv/pdo_connect_driver.phpt +++ b/test/functional/pdo_sqlsrv/pdo_connect_driver.phpt @@ -22,7 +22,6 @@ $conn = null; testValidValues(); testInvalidValues(); testEncryptedWithODBC(); -testWrongODBC(); echo "Done" . PHP_EOL; // end test @@ -118,17 +117,6 @@ function testEncryptedWithODBC() connectVerifyOutput($connectionOptions, "Using ODBC 13 for AE", $expected); } -function testWrongODBC() -{ - global $msodbcsqlMaj; - - $value = "ODBC Driver 13 for SQL Server"; - $connectionOptions = "Driver = $value;"; - $expected = "The specified ODBC Driver is not found."; - - connectVerifyOutput($connectionOptions, "Connect with ODBC 13", $expected); -} - ?> --EXPECT-- Done diff --git a/test/functional/sqlsrv/sqlsrv_connect_driver.phpt b/test/functional/sqlsrv/sqlsrv_connect_driver.phpt index a3f05e53..12a209fe 100644 --- a/test/functional/sqlsrv/sqlsrv_connect_driver.phpt +++ b/test/functional/sqlsrv/sqlsrv_connect_driver.phpt @@ -20,7 +20,6 @@ sqlsrv_close($conn); testValidValues($msodbcsqlMaj, $server, $connectionOptions); testInvalidValues($msodbcsqlMaj, $server, $connectionOptions); testEncryptedWithODBC($msodbcsqlMaj, $server, $connectionOptions); -testWrongODBC($msodbcsqlMaj, $server, $connectionOptions); echo "Done\n"; // end test @@ -115,15 +114,6 @@ function testEncryptedWithODBC($msodbcsqlMaj, $server, $connectionOptions) connectVerifyOutput($server, $connectionOptions, "Using ODBC 13 for AE", $expected); } -function testWrongODBC($msodbcsqlMaj, $server, $connectionOptions) -{ - $value = "ODBC Driver 13 for SQL Server"; - $connectionOptions['Driver']=$value; - $expected = "The specified ODBC Driver is not found."; - - connectVerifyOutput($server, $connectionOptions, "Connect with ODBC 13", $expected); -} - ?> --EXPECT-- Done