summaryrefslogtreecommitdiffstats
path: root/Tests/Net/OpenID/Association.php
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Net/OpenID/Association.php')
-rw-r--r--Tests/Net/OpenID/Association.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/Net/OpenID/Association.php b/Tests/Net/OpenID/Association.php
new file mode 100644
index 0000000..58a9f99
--- /dev/null
+++ b/Tests/Net/OpenID/Association.php
@@ -0,0 +1,17 @@
+<?php
+
+require_once('PHPUnit.php');
+require_once('Net/OpenID/Association.php');
+
+class Tests_Net_OpenID_Association extends PHPUnit_TestCase {
+ function test_me() {
+ $issued = time();
+ $lifetime = 600;
+ $assoc = new Net_OpenID_Association('handle', 'secret', $issued,
+ $lifetime, 'HMAC-SHA1');
+ $s = $assoc->serialize();
+ $assoc2 = Net_OpenID_Association::deserialize('Net_OpenID_Association', $s);
+ }
+}
+
+?> \ No newline at end of file