|
|
@@ -14,6 +14,9 @@ namespace Monolog\Handler;
|
|
|
use MongoDB\Driver\Manager;
|
|
|
use Monolog\Test\TestCase;
|
|
|
|
|
|
+/**
|
|
|
+ * @requires extension mongodb
|
|
|
+ */
|
|
|
class MongoDBHandlerTest extends TestCase
|
|
|
{
|
|
|
public function testConstructorShouldThrowExceptionForInvalidMongo()
|
|
|
@@ -56,10 +59,6 @@ class MongoDBHandlerTest extends TestCase
|
|
|
|
|
|
public function testHandleWithDriverManager()
|
|
|
{
|
|
|
- if (!(class_exists('MongoDB\Driver\Manager'))) {
|
|
|
- $this->markTestSkipped('ext-mongodb not installed');
|
|
|
- }
|
|
|
-
|
|
|
/* This can become a unit test once ManagerInterface can be mocked.
|
|
|
* See: https://jira.mongodb.org/browse/PHPC-378
|
|
|
*/
|