diff options
author | Andy Chase <asperous2@gmail.com> | 2013-07-05 14:49:30 -0700 |
---|---|---|
committer | Andy Chase <asperous2@gmail.com> | 2013-07-05 14:49:30 -0700 |
commit | 5cdcb689df37fd7cbaaa1b5475caa830e87be318 (patch) | |
tree | b2e0eeb07f51c9a69d4e4cc739a4767883414140 /tests/mock | |
parent | 6f8187f7faadc543f3e43db278cd7239e8cf7ac7 (diff) | |
download | forums-5cdcb689df37fd7cbaaa1b5475caa830e87be318.tar forums-5cdcb689df37fd7cbaaa1b5475caa830e87be318.tar.gz forums-5cdcb689df37fd7cbaaa1b5475caa830e87be318.tar.bz2 forums-5cdcb689df37fd7cbaaa1b5475caa830e87be318.tar.xz forums-5cdcb689df37fd7cbaaa1b5475caa830e87be318.zip |
[ticket/11620] Implemented a provider mock object.
Due to an auth_refactor, there is a new dependency
in session.php on phpbb_container and a provider.
For purposes of testing, implemented a simple one.
PHPBB3-11620
Diffstat (limited to 'tests/mock')
-rw-r--r-- | tests/mock/provider.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/mock/provider.php b/tests/mock/provider.php new file mode 100644 index 0000000000..21ef2fc949 --- /dev/null +++ b/tests/mock/provider.php @@ -0,0 +1,23 @@ +<?php +/** + * + * @package testing + * @copyright (c) 2013 phpBB Group + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 + * + */ + +/** + * Mock provider class with basic functions to help test + * sessions. + */ +class phpbb_provider { + function autologin() + { + return array(); + } + function kill() + { + + } +} |