Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

improves tests information

  • Loading branch information...
commit 22d8c517d7e8c2550a7dab4069938491661bbd08 1 parent d066156
@videlalvaro authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 test.php
View
14 test.php
@@ -2,11 +2,25 @@
require_once('./doc/examples/PHPCask.class.php');
+function test_log($msg)
+{
+ echo "===============\n";
+ echo $msg, "\n";
+}
+
+test_log("connecting…");
$phpcask = new PHPCask('phpcask@localhost', $argv[1]);
+test_log("put…");
var_dump($phpcask->put("foo", "bar"));
+test_log("get…");
var_dump($phpcask->get("foo"));
+test_log("put…");
var_dump($phpcask->put("foo2", "bar2"));
+test_log("list_keys…");
var_dump($phpcask->list_keys());
+test_log("delete…");
var_dump($phpcask->delete("foo"));
+test_log("get…");
var_dump($phpcask->get("foo"));
+test_log("list_keys…");
var_dump($phpcask->list_keys());
Please sign in to comment.
Something went wrong with that request. Please try again.