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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user