]> git.mxchange.org Git - friendica.git/blob - tests/src/Util/Logger/LoggerDataTrait.php
Merge pull request #7728 from MrPetovan/task/7682-better-insert-link-button
[friendica.git] / tests / src / Util / Logger / LoggerDataTrait.php
1 <?php
2
3 namespace Friendica\Test\src\Util\Logger;
4
5 trait LoggerDataTrait
6 {
7         public function dataTests()
8         {
9                 return [
10                         'emergency' => [
11                                 'function' => 'emergency',
12                                 'message' => 'test',
13                                 'context' => ['a' => 'context'],
14                         ],
15                         'alert' => [
16                                 'function' => 'alert',
17                                 'message' => 'test {test}',
18                                 'context' => ['a' => 'context', 2 => 'so', 'test' => 'works'],
19                         ],
20                         'critical' => [
21                                 'function' => 'critical',
22                                 'message' => 'test crit 2345',
23                                 'context' => ['a' => 'context', 'wit' => ['more', 'array']],
24                         ],
25                         'error' => [
26                                 'function' => 'error',
27                                 'message' => 2.554,
28                                 'context' => [],
29                         ],
30                         'warning' => [
31                                 'function' => 'warning',
32                                 'message' => 'test warn',
33                                 'context' => ['a' => 'context'],
34                         ],
35                         'notice' => [
36                                 'function' => 'notice',
37                                 'message' => 2346,
38                                 'context' => ['a' => 'context'],
39                         ],
40                         'info' => [
41                                 'function' => 'info',
42                                 'message' => null,
43                                 'context' => ['a' => 'context'],
44                         ],
45                         'debug' => [
46                                 'function' => 'debug',
47                                 'message' => true,
48                                 'context' => ['a' => false],
49                         ],
50                 ];
51         }
52 }