diff options
-rw-r--r-- | Tests/Net/OpenID/Association.php | 17 | ||||
-rw-r--r-- | Tests/TestDriver.php | 1 |
2 files changed, 18 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 diff --git a/Tests/TestDriver.php b/Tests/TestDriver.php index cc78e5a..067863b 100644 --- a/Tests/TestDriver.php +++ b/Tests/TestDriver.php @@ -43,6 +43,7 @@ $_test_names = array( 'OIDUtil', 'DiffieHellman', 'HMACSHA1', + 'Association' ); // Load OpenID library tests |