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:
23
tests/mock/provider.php
Normal file
23
tests/mock/provider.php
Normal 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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user