--TEST-- Invalid Query Test --DESCRIPTION-- Verifies of "sqlsrv_query" response to invalid query attempts --ENV-- PHPT_EXEC=true --SKIPIF-- --FILE-- 1) ); if ($stmt3) { die("Insert query with invalid option should have failed."); } // Invalid select dropTable($conn1, $tableName); $stmt4 = sqlsrv_query($conn1, "SELECT * FROM [$tableName]"); if ($stmt4) { die("Select query should have failed."); } sqlsrv_close($conn1); endTest($testName); } try { invalidQuery(); } catch (Exception $e) { echo $e->getMessage(); } ?> --EXPECT-- Test "Statement - Invalid Query" completed successfully.