Skip to content

Commit

Permalink
improves tests information
Browse files Browse the repository at this point in the history
  • Loading branch information
videlalvaro committed May 17, 2010
1 parent d066156 commit 22d8c51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test.php
Expand Up @@ -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());

0 comments on commit 22d8c51

Please sign in to comment.