Explorar el Código

Try to fix MongoDB 1.x test runs

Jordi Boggiano hace 2 meses
padre
commit
271d5008bb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/Monolog/Handler/MongoDBHandlerTest.php

+ 1 - 1
tests/Monolog/Handler/MongoDBHandlerTest.php

@@ -48,7 +48,7 @@ class MongoDBHandlerTest extends TestCase
             ->getMock();
 
         $client->expects($this->once())
-            ->method('getCollection')
+            ->method(method_exists($client, 'getCollection') ? 'getCollection' : 'selectCollection')
             ->with('db', 'collection')
             ->will($this->returnValue($collection));