pomaxa 13 лет назад
Родитель
Сommit
a9df0f461a
1 измененных файлов с 11 добавлено и 3 удалено
  1. 11 3
      tests/Monolog/Handler/AmqpHandlerTest.php

+ 11 - 3
tests/Monolog/Handler/AmqpHandlerTest.php

@@ -17,7 +17,7 @@ use Monolog\Logger;
 /**
  * @covers Monolog\Handler\RotatingFileHandler
  */
-class RotatingFileHandlerTest extends TestCase
+class AmqpHandlerTest extends TestCase
 {
     public function setUp()
     {
@@ -32,12 +32,20 @@ class RotatingFileHandlerTest extends TestCase
         require_once __DIR__ . '/AmqpMocks.php';
     }
 
-    public function testWrite()
+
+    public function testConstruct()
     {
 //        $handler = new AmqpHandler($this->getMockAMQPConnection(), 'log', 'monolog');
+//        $this->assertInstanceOf('Monolog\Handler\AmqpHandler', $handler);
+    }
+
+    public function testWrite()
+    {
+
     }
 
-    public function getMockAMQPConnection() {
+    public function getMockAMQPConnection()
+    {
         return new MockAMQPConnection();
     }