diff options
| author | Asko Nõmm <asko@nth.ee> | 2024-11-15 11:08:38 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nth.ee> | 2024-11-15 11:08:38 +0200 |
| commit | c69944457919ddf133da7573fe9aa41246f98957 (patch) | |
| tree | fb740791787f0af18324d578af675245f35f5533 /tests/OutputDriverTest.php | |
| parent | 9291fc3af8d0d87b58ef2de96f5d650038db32c0 (diff) | |
Lowercase enum values for level.
Diffstat (limited to 'tests/OutputDriverTest.php')
| -rw-r--r-- | tests/OutputDriverTest.php | 8 |
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 |
