summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nth.ee>2024-11-15 11:08:38 +0200
committerAsko Nõmm <asko@nth.ee>2024-11-15 11:08:38 +0200
commitc69944457919ddf133da7573fe9aa41246f98957 (patch)
treefb740791787f0af18324d578af675245f35f5533 /tests
parent9291fc3af8d0d87b58ef2de96f5d650038db32c0 (diff)
Lowercase enum values for level.
Diffstat (limited to 'tests')
-rw-r--r--tests/OutputDriverTest.php8
1 files changed, 8 insertions, 0 deletions
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