You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/DependencyInjection/MonologExtensionTest.php
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -936,6 +936,10 @@ public function testElasticsearchAndElasticaHandlers()
936
936
/** @group legacy */
937
937
publicfunctiontestMongo()
938
938
{
939
+
if (!class_exists('MongoDB\Client') {
940
+
$this->markTestSkipped('mongodb/mongodb is not installed.');
941
+
}
942
+
939
943
$this->expectDeprecation('Since symfony/monolog-bundle 3.11: The "mongo" handler type is deprecated in MonologBundle since version 3.11.0, use the "mongodb" type instead.');
940
944
941
945
$container = newContainerBuilder();
@@ -1008,6 +1012,10 @@ public function testMongo()
1008
1012
1009
1013
publicfunctiontestMongoDB()
1010
1014
{
1015
+
if (!class_exists('MongoDB\Client') {
1016
+
$this->markTestSkipped('mongodb/mongodb is not installed.');
0 commit comments