public function MongoDBCacheTest::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MongoDBCacheTest.php \Doctrine\Tests\Common\Cache\MongoDBCacheTest::setUp()
File
- vendor/
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');
}