diff options
author | tailor <cygnus@janrain.com> | 2006-01-04 21:07:46 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-01-04 21:07:46 +0000 |
commit | 5f603687930c5cda8503316c1abf1858c6386f1b (patch) | |
tree | ee6c5eaee0d9277c613aaf6b345c3ffe84ea90ea | |
parent | 32029694a3554d9ba981820f17a01bce27d5d1a7 (diff) | |
download | php-openid-5f603687930c5cda8503316c1abf1858c6386f1b.zip php-openid-5f603687930c5cda8503316c1abf1858c6386f1b.tar.gz php-openid-5f603687930c5cda8503316c1abf1858c6386f1b.tar.bz2 |
[project @ Fixed line wrapping]
-rw-r--r-- | Tests/Net/OpenID/StoreTest.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Tests/Net/OpenID/StoreTest.php b/Tests/Net/OpenID/StoreTest.php index 0cc834e..78253ac 100644 --- a/Tests/Net/OpenID/StoreTest.php +++ b/Tests/Net/OpenID/StoreTest.php @@ -51,9 +51,11 @@ class Tests_Net_OpenID_StoreTest extends PHPUnit_TestCase { } function genAssoc($now, $issued = 0, $lifetime = 600) { - $sec = call_user_func(array('Net_OpenID_CryptUtil', 'randomString'), 20); + $sec = call_user_func(array('Net_OpenID_CryptUtil', 'randomString'), + 20); $hdl = Net_OpenID_CryptUtil::randomString(128, $this->allowed_handle); - return new Net_OpenID_Association($hdl, $sec, $now + $issued, $lifetime, 'HMAC-SHA1'); + return new Net_OpenID_Association($hdl, $sec, $now + $issued, $lifetime, + 'HMAC-SHA1'); } /** @@ -71,7 +73,8 @@ class Tests_Net_OpenID_StoreTest extends PHPUnit_TestCase { $server_url = 'http://www.myopenid.com/openid'; - function checkRetrieve(&$store, $url, $handle = null, $expected = null) { + function checkRetrieve(&$store, $url, + $handle = null, $expected = null) { $retrieved_assoc = $store->getAssociation($url, $handle); if (($expected === null) || ($store->isDumb())) { assert($retrieved_assoc === null); @@ -226,8 +229,8 @@ class Tests_Net_OpenID_StoreTest extends PHPUnit_TestCase { $temp_dir = Net_OpenID_mkdtemp('/tmp'); if (!$temp_dir) { - trigger_error('Could not create temporary directory with Net_OpenID_mkdtemp', - E_USER_WARNING); + trigger_error('Could not create temporary directory ' . + 'with Net_OpenID_mkdtemp', E_USER_WARNING); return null; } |