X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=webtest%2Ftest_db.php;fp=webtest%2Ftest_db.php;h=de2bcdc51fd46192b0c6ffa149c2d9916aeafdb0;hb=af11ea2a4762764ae558a70dad80f8141bfa43d1;hp=0000000000000000000000000000000000000000;hpb=5886386f05c5a37d8091e14934eb42b8a5c22063;p=brisk.git diff --git a/webtest/test_db.php b/webtest/test_db.php new file mode 100644 index 0000000..de2bcdc --- /dev/null +++ b/webtest/test_db.php @@ -0,0 +1,58 @@ +\n"); + break; + } + printf("DB creation success
\n"); + if ($bdb->transaction("BEGIN") == FALSE) { + printf("BEGIN failed
\n"); + break; + } + printf("BEGIN success
\n"); + + if ($bdb->transaction("COMMIT") == FALSE) { + printf("COMMIT failed
\n"); + break; + } + printf("COMMIT success
\n"); + + if ($bdb->transaction("BEgIN") != FALSE) { + printf("BEgIN missed fail
\n"); + break; + } + printf("BEgIN fail correctly
\n"); + } while (FALSE); +} + +main(); +?> \ No newline at end of file