From c69944457919ddf133da7573fe9aa41246f98957 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Fri, 15 Nov 2024 11:08:38 +0200 Subject: Lowercase enum values for level. --- tests/OutputDriverTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/OutputDriverTest.php b/tests/OutputDriverTest.php index 76867a6..e235cd9 100644 --- a/tests/OutputDriverTest.php +++ b/tests/OutputDriverTest.php @@ -96,4 +96,12 @@ class OutputDriverTest extends TestCase $loggr = new Loggr(new OutputDriver()); $loggr->debug('test'); } + + public function testLog(): void + { + $date = (new DateTime)->format('Y-m-d H:i:s'); + $this->expectOutputString("[{$date}] OutputDriverTest.DEBUG: test"); + $loggr = new Loggr(new OutputDriver()); + $loggr->log('debug', 'test'); + } } \ No newline at end of file -- cgit v1.2.3