1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[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
This commit is contained in:
Andy Chase
2013-07-05 14:49:30 -07:00
parent 6f8187f7fa
commit 5cdcb689df
2 changed files with 34 additions and 1 deletions

23
tests/mock/provider.php Normal file
View File

@@ -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()
{
}
}