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: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=af11ea2a4762764ae558a70dad80f8141bfa43d1;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