diff options
Diffstat (limited to 'tests')
| -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 |
