Tests updated

This commit is contained in:
David Puglielli 2018-05-09 16:11:17 -07:00
parent 3cb84ee4ee
commit b98b12965c
2 changed files with 9 additions and 2 deletions

View file

@ -26,7 +26,7 @@ function checkErrors($errors, ...$codes)
if ($errors[0] != $code)
{
echo "Error: ";
print_r($errors[$i/2][0]);
print_r($errors[0]);
echo "\nExpected: ";
print_r($code);
echo "\n";
@ -36,7 +36,7 @@ function checkErrors($errors, ...$codes)
if ($errors[1] != $code)
{
echo "Error: ";
print_r($errors[$i/2][1]);
print_r($errors[1]);
echo "\nExpected: ";
print_r($code);
echo "\n";
@ -171,7 +171,10 @@ for ($i=0; $i < sizeof($columnEncryption); ++$i) {
else if ($m==3)
checkErrors($errors, 'IMSSP', '-88');
else
{
echo "i=$i j=$j k=$k m=$m failed connection\n";
checkErrors($errors, 'CE275', '0');
}
}
}
}

View file

@ -130,7 +130,11 @@ for ($i=0; $i < sizeof($columnEncryption); ++$i) {
else if ($m==3)
checkErrors($errors, 'IMSSP', '-113');
else
{
echo "i=$i j=$j k=$k m=$m failed connection\n";
print_r(sqlsrv_errors());
fatalError("Connection failed, unexpected connection string.\n");
}
} else {
$columns = array();
$insertQuery = "";