diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..db797324 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.vs +.vscode +__pycache__ +*.diff +*.exp +*.log +*.sh +*.out +test/**/**/*.php \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 4cf0be78..5f5e8a5c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,6 +12,7 @@ environment: SQLSRV_DBNAME: msphpsql_sqlsrv PDOSQLSRV_DBNAME: msphpsql_pdosqlsrv PYTHON: c:\Python36 + APPVEYOR: true # For details about Appveyor build worker images (VM template): https://www.appveyor.com/docs/build-environment/#build-worker-images matrix: - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 diff --git a/test/functional/pdo_sqlsrv/pdo_azure_ad_managed_identity.phpt b/test/functional/pdo_sqlsrv/pdo_azure_ad_managed_identity.phpt index 03856d90..cf84d8a3 100644 --- a/test/functional/pdo_sqlsrv/pdo_azure_ad_managed_identity.phpt +++ b/test/functional/pdo_sqlsrv/pdo_azure_ad_managed_identity.phpt @@ -3,7 +3,11 @@ Test some error conditions of Azure AD Managed Identity support --DESCRIPTION-- This test expects certain exceptions to be thrown under some conditions. --SKIPIF-- - + --FILE-- getMessage()); + echo "\n"; } } catch(PDOException $e) { print_r($e->getMessage()); @@ -72,7 +78,9 @@ function connectInvalidServerWithUser() $conn = new PDO("sqlsrv:server = invalidServer; $connectionInfo", $user, null); echo $message . $testCase . PHP_EOL; } catch(PDOException $e) { - // TODO: check the exception message here + echo "Failed to connect\n"; + print_r($e->getMessage()); + echo "\n"; } } catch(PDOException $e) { print_r($e->getMessage()); diff --git a/test/functional/pdo_sqlsrv/skipif_Appveyor.inc b/test/functional/pdo_sqlsrv/skipif_Appveyor.inc new file mode 100644 index 00000000..f757973c --- /dev/null +++ b/test/functional/pdo_sqlsrv/skipif_Appveyor.inc @@ -0,0 +1,4 @@ +