@@ -94,7 +94,7 @@ public function testConstructionMethods($mongo, array $options)
9494 $ this ->assertFalse ($ store ->exists ($ key ));
9595 }
9696
97- public function provideConstructorArgs ()
97+ public static function provideConstructorArgs ()
9898 {
9999 $ client = self ::getMongoClient ();
100100 yield [$ client , ['database ' => 'test ' , 'collection ' => 'lock ' ]];
@@ -134,7 +134,7 @@ public function testInvalidConstructionMethods($mongo, array $options)
134134 new MongoDbStore ($ mongo , $ options );
135135 }
136136
137- public function provideInvalidConstructorArgs ()
137+ public static function provideInvalidConstructorArgs ()
138138 {
139139 $ client = self ::getMongoClient ();
140140 yield [$ client , ['collection ' => 'lock ' ]];
@@ -160,7 +160,7 @@ public function testUriCollectionStrip(string $uri, array $options, string $driv
160160 $ this ->assertSame ($ driverUri , $ uri );
161161 }
162162
163- public function provideUriCollectionStripArgs ()
163+ public static function provideUriCollectionStripArgs ()
164164 {
165165 yield ['mongodb://localhost/?collection=lock ' , ['database ' => 'test ' ], 'mongodb://localhost/ ' ];
166166 yield ['mongodb://localhost/ ' , ['database ' => 'test ' , 'collection ' => 'lock ' ], 'mongodb://localhost/ ' ];
0 commit comments