aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-06-11 17:46:51 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-05-06 21:43:55 +0200
commit1a8a8da7bf5e7d5ab353c37a889f695a9deba306 (patch)
tree4952e2fa022ea96c790712fc20e1498675ef8dea /tests/mock
parent653305d46119bd90cb4fb68a935729e872544842 (diff)
downloadforums-1a8a8da7bf5e7d5ab353c37a889f695a9deba306.tar
forums-1a8a8da7bf5e7d5ab353c37a889f695a9deba306.tar.gz
forums-1a8a8da7bf5e7d5ab353c37a889f695a9deba306.tar.bz2
forums-1a8a8da7bf5e7d5ab353c37a889f695a9deba306.tar.xz
forums-1a8a8da7bf5e7d5ab353c37a889f695a9deba306.zip
[ticket/14670] Fix incompatibilities with container definitions
PHPBB3-14670
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/container_builder.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/mock/container_builder.php b/tests/mock/container_builder.php
index 134589b0b8..edf0d58a28 100644
--- a/tests/mock/container_builder.php
+++ b/tests/mock/container_builder.php
@@ -23,11 +23,11 @@ class phpbb_mock_container_builder implements ContainerInterface
*
* @param string $id The service identifier
* @param object $service The service instance
- * @param string $scope The scope of the service
+ * @param bool $shared Whether service is shared
*
* @api
*/
- public function set($id, $service, $scope = self::SCOPE_CONTAINER)
+ public function set($id, $service, $shared = false)
{
$this->services[$id] = $service;
}
@@ -193,4 +193,9 @@ class phpbb_mock_container_builder implements ContainerInterface
{
return false;
}
+
+ public function initialized($id)
+ {
+ return true;
+ }
}