public function MongoDBCacheTest::setUp in Plug 7
File
- lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ MongoDBCacheTest.php, line 17
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function setUp() {
if (!version_compare(phpversion('mongo'), '1.3.0', '>=')) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of mongo >= 1.3.0');
}
$mongo = new MongoClient();
$this->collection = $mongo
->selectCollection('doctrine_common_cache', 'test');
}