use Symfony\Component\Lock\Store\StoreFactory;
/**
* @author Alexandre Daubois <alex.daubois@gmail.com>
*
* @requires extension mongo
*/
class MongoDbStoreFactoryTest extends TestCase
{ public function testCreateMongoDbCollectionStore() { $store = StoreFactory::
createStore($this->
createMock(\MongoDB\Collection::
class));
$this->
assertInstanceOf(MongoDbStore::
class,
$store);
} public function testCreateMongoDbCollectionStoreAsDsn() { $store = StoreFactory::
createStore('mongodb://localhost/test?collection=lock'
);
$this->
assertInstanceOf(MongoDbStore::
class,
$store);
}}