From 1a8a8da7bf5e7d5ab353c37a889f695a9deba306 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 11 Jun 2016 17:46:51 +0200 Subject: [ticket/14670] Fix incompatibilities with container definitions PHPBB3-14670 --- tests/mock/container_builder.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/mock/container_builder.php') 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; + } } -- cgit v1.2.1 From 139eb17bb729763ab670fb239c77db02e29920f6 Mon Sep 17 00:00:00 2001 From: Jakub Senko Date: Mon, 18 Jun 2018 20:35:01 +0200 Subject: [ticket/12624] Add debug.load_time parameter PHPBB3-12624 --- tests/mock/container_builder.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/mock/container_builder.php') diff --git a/tests/mock/container_builder.php b/tests/mock/container_builder.php index edf0d58a28..05083c3a3c 100644 --- a/tests/mock/container_builder.php +++ b/tests/mock/container_builder.php @@ -18,6 +18,11 @@ class phpbb_mock_container_builder implements ContainerInterface protected $services = array(); protected $parameters = array(); + public function __construct() + { + $this->setParameter('debug.load_time', false); + } + /** * Sets a service. * -- cgit v1.2.1 From c20fed43cde6cf3c31130336bb45de860a536aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sat, 1 Sep 2018 01:57:01 +0200 Subject: [ticket/12636] Add log.session_errors to mock container_builder PHPBB3-12636 --- tests/mock/container_builder.php | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/mock/container_builder.php') diff --git a/tests/mock/container_builder.php b/tests/mock/container_builder.php index 05083c3a3c..b27b0e64cb 100644 --- a/tests/mock/container_builder.php +++ b/tests/mock/container_builder.php @@ -21,6 +21,7 @@ class phpbb_mock_container_builder implements ContainerInterface public function __construct() { $this->setParameter('debug.load_time', false); + $this->setParameter('log.session_errors', false); } /** -- cgit v1.2.1 From a702142a3483e0d80352e74d238938e6f01eaa2d Mon Sep 17 00:00:00 2001 From: rubencm Date: Thu, 13 Sep 2018 14:53:01 +0000 Subject: [ticket/12636] Rename log.session_errors to session.log_errors PHPBB3-12636 --- tests/mock/container_builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/mock/container_builder.php') diff --git a/tests/mock/container_builder.php b/tests/mock/container_builder.php index b27b0e64cb..17c4ae22dd 100644 --- a/tests/mock/container_builder.php +++ b/tests/mock/container_builder.php @@ -21,7 +21,7 @@ class phpbb_mock_container_builder implements ContainerInterface public function __construct() { $this->setParameter('debug.load_time', false); - $this->setParameter('log.session_errors', false); + $this->setParameter('session.log_errors', false); } /** -- cgit v1.2.1