diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-06-28 01:36:59 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-07-07 01:02:27 +0200 |
commit | 1d966fbc86db47c3518b35de849cad3a1f295e71 (patch) | |
tree | 06ba40dbd2a99046bee989b1b4ff987e37e37a0b /tests/mock | |
parent | c87f44c6692c55adb3ce5bc5b7bca8da7b1357ab (diff) | |
download | forums-1d966fbc86db47c3518b35de849cad3a1f295e71.tar forums-1d966fbc86db47c3518b35de849cad3a1f295e71.tar.gz forums-1d966fbc86db47c3518b35de849cad3a1f295e71.tar.bz2 forums-1d966fbc86db47c3518b35de849cad3a1f295e71.tar.xz forums-1d966fbc86db47c3518b35de849cad3a1f295e71.zip |
[ticket/12775] Add tests for the container factory
PHPBB3-12775
Diffstat (limited to 'tests/mock')
-rw-r--r-- | tests/mock/container_factory.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/mock/container_factory.php b/tests/mock/container_factory.php new file mode 100644 index 0000000000..8b1720d027 --- /dev/null +++ b/tests/mock/container_factory.php @@ -0,0 +1,20 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +class phpbb_mock_container_factory extends \phpbb\di\container_factory +{ + protected function get_container_filename() + { + return $this->phpbb_root_path . '../../tmp/cache/container.' . $this->php_ext; + } +} |