From 12b6c4b3008c2df545c537943d4e38323cfc174e Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 10 Nov 2024 22:28:03 +0200 Subject: Initial commit --- tests/LoggrTest.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/LoggrTest.php (limited to 'tests/LoggrTest.php') diff --git a/tests/LoggrTest.php b/tests/LoggrTest.php new file mode 100644 index 0000000..4abae86 --- /dev/null +++ b/tests/LoggrTest.php @@ -0,0 +1,31 @@ +expectExceptionMessage('No driver has been set.'); + $loggr = new Loggr(); + $loggr->info('test'); + } + + /** + * @throws \Exception + */ + public function testNoFormat(): void + { + $this->expectExceptionMessage('No format has been set.'); + $loggr = new Loggr(new OutputDriver()); + $loggr->format = null; + $loggr->info('test'); + } +} \ No newline at end of file -- cgit v1.2.3