merged branch Tobion/mongotest (PR #4082)
Commits
-------
58b2b2d
fix fatal error when mongo not available
Discussion
----------
fix fatal error when mongo not available
This commit is contained in:
commit
b7189fd54a
|
@ -44,7 +44,9 @@ class MongoDbSessionHandlerTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
protected function tearDown()
|
||||
{
|
||||
self::$mongo->dropDB($this->options['database']);
|
||||
if (null !== self::$mongo) {
|
||||
self::$mongo->dropDB($this->options['database']);
|
||||
}
|
||||
}
|
||||
|
||||
public function testOpenMethodAlwaysReturnTrue()
|
||||
|
|
Reference in New Issue