private function MongoDbSessionHandlerTest::createMongoCollectionMock in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\MongoDbSessionHandlerTest::createMongoCollectionMock()
6 calls to MongoDbSessionHandlerTest::createMongoCollectionMock()
- MongoDbSessionHandlerTest::testDestroy in vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php - MongoDbSessionHandlerTest::testGc in vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php - MongoDbSessionHandlerTest::testRead in vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php - MongoDbSessionHandlerTest::testReplaceSessionData in vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php - MongoDbSessionHandlerTest::testWrite in vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ MongoDbSessionHandlerTest.php, line 242
Class
- MongoDbSessionHandlerTest
- @author Markus Bachmann <markus.bachmann@bachi.biz>
Namespace
Symfony\Component\HttpFoundation\Tests\Session\Storage\HandlerCode
private function createMongoCollectionMock() {
$mongoClient = $this
->getMockBuilder('MongoClient')
->getMock();
$mongoDb = $this
->getMockBuilder('MongoDB')
->setConstructorArgs(array(
$mongoClient,
'database-name',
))
->getMock();
$collection = $this
->getMockBuilder('MongoCollection')
->setConstructorArgs(array(
$mongoDb,
'collection-name',
))
->getMock();
return $collection;
}