diff options
author | tailor <cygnus@janrain.com> | 2006-02-14 19:49:17 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-02-14 19:49:17 +0000 |
commit | b06e21ce74e2d9ffe515ffde1230d0cb43cfcffd (patch) | |
tree | 8dd5f0856b041226c31c81d73ed1a21b3eca4198 /Tests/Auth | |
parent | b7229617cefe6f02354bf69a4e4f1bd1b92ef253 (diff) | |
download | php-openid-b06e21ce74e2d9ffe515ffde1230d0cb43cfcffd.zip php-openid-b06e21ce74e2d9ffe515ffde1230d0cb43cfcffd.tar.gz php-openid-b06e21ce74e2d9ffe515ffde1230d0cb43cfcffd.tar.bz2 |
[project @ Moved FileStore utility functions into FileStore class as private methods.]
Diffstat (limited to 'Tests/Auth')
-rw-r--r-- | Tests/Auth/OpenID/Consumer.php | 6 | ||||
-rw-r--r-- | Tests/Auth/OpenID/StoreTest.php | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php index f9b2002..821e613 100644 --- a/Tests/Auth/OpenID/Consumer.php +++ b/Tests/Auth/OpenID/Consumer.php @@ -216,7 +216,7 @@ class Tests_Auth_OpenID_Consumer extends PHPUnit_TestCase { $_Auth_OpenID_assocs; $store = new Auth_OpenID_FileStore( - Auth_OpenID_mkdtemp($_Auth_OpenID_filestore_base_dir)); + Auth_OpenID_FileStore::_mkdtemp($_Auth_OpenID_filestore_base_dir)); if ($immediate) { $mode = 'checkid_immediate'; @@ -294,7 +294,7 @@ class Tests_Auth_OpenID_Consumer extends PHPUnit_TestCase { global $_Auth_OpenID_filestore_base_dir; $store = new Auth_OpenID_FileStore( - Auth_OpenID_mkdtemp($_Auth_OpenID_filestore_base_dir)); + Auth_OpenID_FileStore::_mkdtemp($_Auth_OpenID_filestore_base_dir)); $fetcher = new Auth_OpenID_TestFetcher(null, null, null, null); $consumer = new Auth_OpenID_TestConsumer($store, &$fetcher); @@ -321,7 +321,7 @@ class Tests_Auth_OpenID_Consumer extends PHPUnit_TestCase { global $_Auth_OpenID_filestore_base_dir; $store = new Auth_OpenID_FileStore( - Auth_OpenID_mkdtemp($_Auth_OpenID_filestore_base_dir)); + Auth_OpenID_FileStore::_mkdtemp($_Auth_OpenID_filestore_base_dir)); $user_url = 'http://user.example.com/'; $cases = array( diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php index a98f760..c9a1baa 100644 --- a/Tests/Auth/OpenID/StoreTest.php +++ b/Tests/Auth/OpenID/StoreTest.php @@ -308,11 +308,12 @@ explicitly'); { require_once 'Auth/OpenID/Store/FileStore.php'; - $temp_dir = Auth_OpenID_mkdtemp('/tmp'); + $temp_dir = Auth_OpenID_FileStore::_mkdtemp('/tmp'); if (!$temp_dir) { trigger_error('Could not create temporary directory ' . - 'with Auth_OpenID_mkdtemp', E_USER_WARNING); + 'with Auth_OpenID_FileStore::_mkdtemp', + E_USER_WARNING); return null; } @@ -437,11 +438,12 @@ explicitly'); require_once 'Auth/OpenID/Store/SQLStore.php'; require_once 'DB.php'; - $temp_dir = Auth_OpenID_mkdtemp('/tmp'); + $temp_dir = Auth_OpenID_FileStore::_mkdtemp('/tmp'); if (!$temp_dir) { trigger_error('Could not create temporary directory ' . - 'with Auth_OpenID_mkdtemp', E_USER_WARNING); + 'with Auth_OpenID_FileStore::_mkdtemp', + E_USER_WARNING); return null; } |