Skip to content

Commit ee3caba

Browse files
[Lock] fix tests for MongoDB
1 parent c8472b5 commit ee3caba

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/Symfony/Component/Lock/Tests/Store/MongoDbStoreTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
/**
2222
* @author Joe Bennett <joe@assimtech.com>
23-
* @requires extension mongodb
23+
*
24+
* @requires function \MongoDB\Client::__construct
2425
*/
2526
class MongoDbStoreTest extends AbstractStoreTest
2627
{

src/Symfony/Component/Lock/composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"require-dev": {
2424
"doctrine/dbal": "~2.5",
25+
"mongodb/mongodb": "~1.1",
2526
"predis/predis": "~1.0"
2627
},
2728
"conflict": {

src/Symfony/Component/Lock/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<ini name="error_reporting" value="-1" />
1313
<env name="REDIS_HOST" value="localhost" />
1414
<env name="MEMCACHED_HOST" value="localhost" />
15+
<env name="MONGODB_HOST" value="localhost" />
1516
<env name="ZOOKEEPER_HOST" value="localhost" />
1617
</php>
1718

0 commit comments

Comments
 (0)