Skip to content

Commit b7189fd

Browse files
committed
merged branch Tobion/mongotest (PR symfony#4082)
Commits ------- 58b2b2d fix fatal error when mongo not available Discussion ---------- fix fatal error when mongo not available
2 parents 27b4774 + 58b2b2d commit b7189fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ protected function setUp()
4444

4545
protected function tearDown()
4646
{
47-
self::$mongo->dropDB($this->options['database']);
47+
if (null !== self::$mongo) {
48+
self::$mongo->dropDB($this->options['database']);
49+
}
4850
}
4951

5052
public function testOpenMethodAlwaysReturnTrue()

0 commit comments

Comments
 (0)