From: Matteo Nastasi (mop) Date: Mon, 14 Apr 2014 11:26:05 +0000 (+0200) Subject: webtest directory added with first test_db X-Git-Tag: v4.14.0~9 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=af11ea2a4762764ae558a70dad80f8141bfa43d1;hp=5886386f05c5a37d8091e14934eb42b8a5c22063;p=brisk.git webtest directory added with first test_db --- 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