From ec1dcc8df6d6f72d5ff7db46097306c07c31e674 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 23 Sep 2021 14:42:16 +0200 Subject: [PATCH] =?UTF-8?q?:bulb:=20N=C2=B03513=20PHPDoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/cmdbsource.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index 9e3f6256a..cfb0cbd9e 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -155,6 +155,10 @@ class CMDBSource /** @var mysqli $m_oMysqli */ protected static $m_oMysqli; /** + * The mysqli object is really hard to mock ! This attribute is used only in certain methods, so that we can mock only a very little subset of the mysqli object. + * We are setting it in {@see Init}, by default it is a copy of {@see $m_oMysqli} + * The mock can be injected using the setter {@see SetMySQLiForQuery} + * * @var mysqli $oMySQLiForQuery * @see GetMySQLiForQuery * @see SetMySQLiForQuery