Introduce new Hook logic

- InstanceManager for computing strategies and to allow decorators
- Adapting Core\Logger to use it
This commit is contained in:
Philipp 2023-01-15 22:31:19 +01:00
parent d17a21601c
commit f609e38600
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
22 changed files with 844 additions and 236 deletions

View file

@ -21,6 +21,7 @@
namespace Friendica\Test\src\Core\Logger;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Test\MockedTest;
use Friendica\Core\Logger\Util\Introspection;
use Mockery\MockInterface;
@ -41,6 +42,10 @@ abstract class AbstractLoggerTest extends MockedTest
* @var Introspection|MockInterface
*/
protected $introspection;
/**
* @var IManageConfigValues|MockInterface
*/
protected $config;
/**
* Returns the content of the current logger instance
@ -68,6 +73,8 @@ abstract class AbstractLoggerTest extends MockedTest
'line' => self::LINE,
'function' => self::FUNC
]);
$this->config = \Mockery::mock(IManageConfigValues::class);
}
public function assertLogline($string)