@@ -97,7 +97,7 @@ public function testConstructionMethods($mongo, array $options)
9797 $ this ->assertFalse ($ store ->exists ($ key ));
9898 }
9999
100- public function provideConstructorArgs ()
100+ public static function provideConstructorArgs ()
101101 {
102102 $ client = self ::getMongoClient ();
103103 yield [$ client , ['database ' => 'test ' , 'collection ' => 'lock ' ]];
@@ -138,7 +138,7 @@ public function testInvalidConstructionMethods($mongo, array $options)
138138 new MongoDbStore ($ mongo , $ options );
139139 }
140140
141- public function provideInvalidConstructorArgs ()
141+ public static function provideInvalidConstructorArgs ()
142142 {
143143 $ client = self ::getMongoClient ();
144144 yield [$ client , ['collection ' => 'lock ' ]];
@@ -165,7 +165,7 @@ public function testUriCollectionStrip(string $uri, array $options, string $driv
165165 $ this ->assertSame ($ driverUri , $ uri );
166166 }
167167
168- public function provideUriCollectionStripArgs ()
168+ public static function provideUriCollectionStripArgs ()
169169 {
170170 yield ['mongodb://localhost/?collection=lock ' , ['database ' => 'test ' ], 'mongodb://localhost/ ' ];
171171 yield ['mongodb://localhost/ ' , ['database ' => 'test ' , 'collection ' => 'lock ' ], 'mongodb://localhost/ ' ];
0 commit comments