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:
Fabien Potencier 2012-04-23 14:39:54 +02:00
commit b7189fd54a
1 changed files with 3 additions and 1 deletions

View File

@ -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()