From a35326e406b76d95833afd62b745f3ee3cce2e90 Mon Sep 17 00:00:00 2001 From: Benjamin Zikarsky Date: Wed, 18 Dec 2013 21:27:50 +0100 Subject: [PATCH] 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. --- tests/Monolog/Handler/MongoDBHandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Monolog/Handler/MongoDBHandlerTest.php b/tests/Monolog/Handler/MongoDBHandlerTest.php index ce3433e1..7f06d666 100644 --- a/tests/Monolog/Handler/MongoDBHandlerTest.php +++ b/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())