Alcaeus\MongoDbAdapter\Tests\Mongo\MongoGridFSFileTest::getGridFS PHP Method

getGridFS() protected method

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