Browse Source

Added test for getDefaultFormatter

ChristianB 13 năm trước cách đây
mục cha
commit
5a2a9129d4
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      tests/Monolog/Handler/ZendMonitorHandlerTest.php

+ 5 - 0
tests/Monolog/Handler/ZendMonitorHandlerTest.php

@@ -54,4 +54,9 @@ class ZendMonitorHandlerTest extends TestCase
         $zendMonitor->handle($record);
     }
 
+    public function testGetDefaultFormatterReturnsNormalizerFormatter()
+    {
+        $zendMonitor = new ZendMonitorHandler();
+        $this->assertInstanceOf('Monolog\Formatter\NormalizerFormatter', $zendMonitor->getDefaultFormatter());
+    }
 }