3 namespace Friendica\Test\src\Util\Logger;
5 use Friendica\Test\MockedTest;
6 use Friendica\Util\Logger\VoidLogger;
9 class VoidLoggerTest extends MockedTest
14 * Test if the profiler is profiling data
15 * @dataProvider dataTests
17 public function testNormal($function, $message, array $context)
19 $logger = new VoidLogger();
20 $logger->$function($message, $context);
24 * Test the log() function
26 public function testProfilingLog()
28 $logger = new VoidLogger();
29 $logger->log(LogLevel::WARNING, 'test', ['a' => 'context']);