summaryrefslogtreecommitdiff
path: root/tests/OutputDriverTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/OutputDriverTest.php')
-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