Permalink
Browse files

fix fatal error when mongo not available

  • Loading branch information...
1 parent 27b4774 commit 58b2b2da546bb2037c9437baade1fc581ed098db @Tobion Tobion committed Apr 23, 2012
@@ -44,7 +44,9 @@ protected function setUp()
protected function tearDown()
{
- self::$mongo->dropDB($this->options['database']);
+ if (null !== self::$mongo) {
+ self::$mongo->dropDB($this->options['database']);
+ }
}
public function testOpenMethodAlwaysReturnTrue()

0 comments on commit 58b2b2d

Please sign in to comment.