modified error messages in the tests

This commit is contained in:
Jenny Tam 2017-09-27 17:03:04 -07:00
parent 5189a9eb65
commit 135286056d
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ function test_wrong_odbc()
{ {
$conn = new PDO( "sqlsrv:server = $server ; $connectionOptions", $uid, $pwd ); $conn = new PDO( "sqlsrv:server = $server ; $connectionOptions", $uid, $pwd );
echo "Should have caused an exception!\n"; echo "Should have caused an exception connecting with $value!\n";
} }
catch( PDOException $e ) catch( PDOException $e )
{ {

View file

@ -132,9 +132,9 @@ function test_wrong_odbc( $msodbcsql_maj, $server, $connectionOptions )
$connectionOptions['Driver']=$value; $connectionOptions['Driver']=$value;
$conn = sqlsrv_connect($server, $connectionOptions); $conn = sqlsrv_connect($server, $connectionOptions);
if ($conn !== false) if ($conn != false)
{ {
echo "Expected errors!\n"; echo "Expected errors connecting with $value!\n";
} }
} }