From 1d966fbc86db47c3518b35de849cad3a1f295e71 Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Sat, 28 Jun 2014 01:36:59 +0200 Subject: [ticket/12775] Add tests for the container factory PHPBB3-12775 --- tests/mock/container_factory.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/mock/container_factory.php (limited to 'tests/mock') 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 @@ + +* @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; + } +} -- cgit v1.2.1