mirror of
https://github.com/friendica/friendica
synced 2025-05-06 13:04:10 +02:00
Rename AbstractLoggerTest to LoggerTestCase
This commit is contained in:
parent
75632a1490
commit
b09fb1047f
5 changed files with 8 additions and 5 deletions
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
|
||||
// Copyright (C) 2010-2024, the Friendica project
|
||||
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
namespace Friendica\Test\src\Core\Logger;
|
||||
|
||||
trait LoggerDataTrait
|
||||
{
|
||||
public function dataTests()
|
||||
{
|
||||
return [
|
||||
'emergency' => [
|
||||
'function' => 'emergency',
|
||||
'message' => 'test',
|
||||
'context' => ['a' => 'context'],
|
||||
],
|
||||
'alert' => [
|
||||
'function' => 'alert',
|
||||
'message' => 'test {test}',
|
||||
'context' => ['a' => 'context', 2 => 'so', 'test' => 'works'],
|
||||
],
|
||||
'critical' => [
|
||||
'function' => 'critical',
|
||||
'message' => 'test crit 2345',
|
||||
'context' => ['a' => 'context', 'wit' => ['more', 'array']],
|
||||
],
|
||||
'error' => [
|
||||
'function' => 'error',
|
||||
'message' => 2.554,
|
||||
'context' => [],
|
||||
],
|
||||
'warning' => [
|
||||
'function' => 'warning',
|
||||
'message' => 'test warn',
|
||||
'context' => ['a' => 'context'],
|
||||
],
|
||||
'notice' => [
|
||||
'function' => 'notice',
|
||||
'message' => 2346,
|
||||
'context' => ['a' => 'context'],
|
||||
],
|
||||
'info' => [
|
||||
'function' => 'info',
|
||||
'message' => null,
|
||||
'context' => ['a' => 'context'],
|
||||
],
|
||||
'debug' => [
|
||||
'function' => 'debug',
|
||||
'message' => true,
|
||||
'context' => ['a' => false],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue