Skip to content

Commit

Permalink
Make sure we have the mongodb/mongodb check still
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 27, 2023
1 parent 7ab2512 commit 99c982a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Monolog/Handler/MongoDBHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public function testConstructorShouldThrowExceptionForInvalidMongo()

public function testHandleWithLibraryClient()
{
if (!(class_exists('MongoDB\Client'))) {
$this->markTestSkipped('mongodb/mongodb not installed');
}

$mongodb = $this->getMockBuilder('MongoDB\Client')
->disableOriginalConstructor()
->getMock();
Expand Down

0 comments on commit 99c982a

Please sign in to comment.