mirror of
https://github.com/friendica/friendica
synced 2025-05-06 15:04:10 +02:00
Introduce new Hook logic
- InstanceManager for computing strategies and to allow decorators - Adapting Core\Logger to use it
This commit is contained in:
parent
d17a21601c
commit
f609e38600
22 changed files with 844 additions and 236 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue