modified error messages in the tests
This commit is contained in:
parent
5189a9eb65
commit
135286056d
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue