#%PAM-1.0 auth sufficient /lib/security/pam_rootok.so auth required /lib/security/pam_stack.so service=system-auth account required /lib/security/pam_permit.so session optional /lib/security/pam_xauth.so ums/atom/tests/mock/extension_manager.php?h=master' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/extension_manager.php
blob: 0c6b8447f109eb7b2e6040c083394c0251d91170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
*
* @package testing
* @copyright (c) 2011 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

class phpbb_mock_extension_manager extends \phpbb\extension\manager
{
	public function __construct($phpbb_root_path, $extensions = array())
	{
		$this->phpbb_root_path = $phpbb_root_path;
		$this->php_ext = 'php';
		$this->extensions = $extensions;
		$this->filesystem = new \phpbb\filesystem(
			new \phpbb\symfony_request(
				new phpbb_mock_request()
			),
			$this->phpbb_root_path,
			$this->php_ext
		);
	}
}