From dcba4f2f889cfddaa3d3e671ff92136e766a4a85 Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 19 Jan 2003 14:29:15 +0000 Subject: [PATCH] Initial revision. Unit tests for WebDocument class in /lib/webl/WebDocument.inc --- tests/web/webDocument.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+), 0 deletions(-) create mode 100644 tests/web/webDocument.php diff --git a/tests/web/webDocument.php b/tests/web/webDocument.php new file mode 100644 index 0000000..276c5c3 --- /dev/null +++ b/tests/web/webDocument.php @@ -0,0 +1,26 @@ +owl_fs_root/lib/web/WebDocument.inc"); + + $oWebDocument = & new WebDocument(1, 1, 1, 1, getCurrentDateTime()); + echo "Create ? " . ($oWebDocument->create() ? "Yes" : "No") . "
"; + $oWebDocument = & new WebDocument(1, 1, 1, 1, getCurrentDateTime()); + $oWebDocument->create(); + echo "Update ? " . ($oWebDocument->update() ? "Yes" : "No") . "
"; + echo "Delete ? " . ($oWebDocument->delete() ? "Yes" : "No") . "
"; + $oNewDocumentField = WebDocument::get(1); + echo "Get ?
" . var_dump($oNewDocumentField) . "
"; +} + +?> -- libgit2 0.21.4