Doctrine\ODM\MongoDB\Tests\BaseTest::getServerVersion PHP Method

getServerVersion() protected method

protected getServerVersion ( )
    protected function getServerVersion()
    {
        $result = $this->dm->getConnection()->selectDatabase(DOCTRINE_MONGODB_DATABASE)->command(array('buildInfo' => 1));
        return $result['version'];
    }