Răsfoiți Sursa

Fixes MongoDBHandler unit-test

On systems with mongo-ext but no MongoDB on localhost the unit-
tests are failing. This commit disables the constructor execution
for the Mongo-mock, so no connection-error is generated.
Benjamin Zikarsky 12 ani în urmă
părinte
comite
a35326e406
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      tests/Monolog/Handler/MongoDBHandlerTest.php

+ 1 - 1
tests/Monolog/Handler/MongoDBHandlerTest.php

@@ -26,7 +26,7 @@ class MongoDBHandlerTest extends TestCase
 
     public function testHandle()
     {
-        $mongo = $this->getMock('Mongo', array('selectCollection'));
+        $mongo = $this->getMock('Mongo', array('selectCollection'), array(), '', false);
         $collection = $this->getMock('stdClass', array('save'));
 
         $mongo->expects($this->once())