protected function getGridFS($name = 'testfs', \MongoDB $database = null) { if ($database === null) { $database = $this->getDatabase(); } return new \MongoGridFS($database, $name); }