1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

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.
This commit is contained in:
Benjamin Zikarsky
2013-12-18 21:27:50 +01:00
parent c9db00f882
commit a35326e406

View File

@@ -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())