Skip to content

Commit ef10338

Browse files
authored
Fix PHPUnit deprecation notices (#1526)
This addresses several "Providing invalid named argument" notices. PHPUnit 11 will require keys in data providers to match method argument names.
1 parent 2bc2c91 commit ef10338

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Operation/WatchFunctionalTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public function testRewindMultipleTimesWithNoResults(): void
488488
}
489489

490490
#[DataProvider('provideCodecOptions')]
491-
public function testNoChangeAfterResumeBeforeInsert(array $options): void
491+
public function testNoChangeAfterResumeBeforeInsert(array $options, Closure $getIdentifier): void
492492
{
493493
$operation = new Watch(
494494
$this->manager,
@@ -1427,7 +1427,7 @@ public function testGetResumeTokenReturnsOriginalResumeTokenOnEmptyBatch(): void
14271427
* - If neither the startAfter nor resumeAfter options were specified, the getResumeToken result must be empty.
14281428
*/
14291429
#[DataProvider('provideCodecOptions')]
1430-
public function testResumeTokenBehaviour(array $options): void
1430+
public function testResumeTokenBehaviour(array $options, Closure $getIdentifier): void
14311431
{
14321432
$this->skipIfServerVersion('<', '4.1.1', 'Testing resumeAfter and startAfter can only be tested on servers >= 4.1.1');
14331433
$this->skipIfIsShardedCluster('Resume token behaviour can\'t be reliably tested on sharded clusters.');

0 commit comments

Comments
 (0)