aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/container_builder.php
diff options
context:
space:
mode:
authorMaat <maat-pub@mageia.biz>2020-05-09 01:15:08 +0200
committerMaat <maat-pub@mageia.biz>2020-05-09 01:15:08 +0200
commit6985226b17e8a0ef0a720bf1d12fe0c216e13dab (patch)
tree116d2565ac02c40abe0548863c6badf8ec3e1d1e /tests/mock/container_builder.php
parent8ea437e30605e0f66b5220bf904a61d7c1d11ddd (diff)
parent8d00784dfe2c8bcb10843ff70b4cfa998d703285 (diff)
downloadforums-master.tar
forums-master.tar.gz
forums-master.tar.bz2
forums-master.tar.xz
forums-master.zip
Merge remote-tracking branch 'upstream/prep-release-3.3.0'HEADmaster
Diffstat (limited to 'tests/mock/container_builder.php')
-rw-r--r--tests/mock/container_builder.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/mock/container_builder.php b/tests/mock/container_builder.php
index 134589b0b8..17c4ae22dd 100644
--- a/tests/mock/container_builder.php
+++ b/tests/mock/container_builder.php
@@ -18,16 +18,22 @@ class phpbb_mock_container_builder implements ContainerInterface
protected $services = array();
protected $parameters = array();
+ public function __construct()
+ {
+ $this->setParameter('debug.load_time', false);
+ $this->setParameter('session.log_errors', false);
+ }
+
/**
* Sets a service.
*
* @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 +199,9 @@ class phpbb_mock_container_builder implements ContainerInterface
{
return false;
}
+
+ public function initialized($id)
+ {
+ return true;
+ }
}