Skip to content

Commit

Permalink
Add a mechanism to bypass mongo functionality if it is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kschroeder committed Dec 27, 2017
1 parent 6683040 commit 1273bef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Storage/MongoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
class MongoTest extends TestCase
{

protected function setUp()
{
if (!extension_loaded('mongodb')) {
$this->markTestSkipped('Mongo extension not installed');
}
parent::setUp();
}

public function testGetOnNullReturnsNull()
{
$collection = $this->getMockBuilder(Collection::class)->disableOriginalConstructor()
Expand Down

0 comments on commit 1273bef

Please sign in to comment.