10000 Load MongoDB stbs explicitly · symfony/symfony@dbefd97 · GitHub
[go: up one dir, main page]

Skip to content

Commit dbefd97

Browse files
committed
Load MongoDB stbs explicitly
1 parent 402ca62 commit dbefd97

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
use Symfony\Component\Clock\MockClock;
2424
use Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler;
2525

26+
require_once __DIR__.'/stubs/mongodb.php';
27+
2628
/**
2729
* @author Markus Bachmann <markus.bachmann@bachi.biz>
2830
*

src/Symfony/Component/HttpFoundation/Tests/Resources/stubs/mongodb.php renamed to src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/stubs/mongodb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/*
1717
* Stubs for the mongodb/mongodb library version ~1.16
1818
*/
19-
if (!class_exists(Client::class)) {
19+
if (!class_exists(Client::class, false)) {
2020
abstract class Client
2121
{
2222
abstract public function getManager(): Manager;

src/Symfony/Component/HttpFoundation/composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,5 @@
4040
"/Tests/"
4141
]
4242
},
43-
"autoload-dev": {
44-
"files": ["Tests/Resources/stubs/mongodb.php"]
45-
},
4643
"minimum-stability": "dev"
4744
}

src/Symfony/Component/Lock/Store/MongoDbStore.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
* @see https://docs.mongodb.com/manual/reference/limits/#Index-Key-Limit
4949
*
5050
* @author Joe Bennett <joe@assimtech.com>
51+
* @author Jérôme Tamarelle <jerome@tamarelle.net>
5152
*/
5253
class MongoDbStore implements PersistingStoreInterface
5354
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
use Symfony\Component\Lock\Store\MongoDbStore;
1818
use Symfony\Component\Lock\Store\StoreFactory;
1919

20+
require_once __DIR__.'/stubs/mongodb.php';
21+
2022
/**
2123
* @author Alexandre Daubois <alex.daubois@gmail.com>
2224
*

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
use Symfony\Component\Lock\PersistingStoreInterface;
2323
use Symfony\Component\Lock\Store\MongoDbStore;
2424

25+
require_once __DIR__.'/stubs/mongodb.php';
26+
2527
/**
2628
* @author Joe Bennett <joe@assimtech.com>
2729
*

src/Symfony/Component/Lock/composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,5 @@
3434
"/Tests/"
3535
]
3636
},
37-
"autoload-dev": {
38-
"files": ["Tests/Resources/stubs/mongodb.php"]
39-
},
4037
"minimum-stability": "dev"
4138
}

0 commit comments

Comments
 (0)
0