mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 21:26:43 +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()
|
public function testHandle()
|
||||||
{
|
{
|
||||||
$mongo = $this->getMock('Mongo', array('selectCollection'));
|
$mongo = $this->getMock('Mongo', array('selectCollection'), array(), '', false);
|
||||||
$collection = $this->getMock('stdClass', array('save'));
|
$collection = $this->getMock('stdClass', array('save'));
|
||||||
|
|
||||||
$mongo->expects($this->once())
|
$mongo->expects($this->once())
|
||||||
|
Reference in New Issue
Block a user