Procházet zdrojové kódy

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 před 12 roky
rodič
revize
a35326e406
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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())