Skip to content

Commit 766df8c

Browse files
authored
Add comments to each data
1 parent 3d5b97d commit 766df8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/system/Cache/Handlers/RedisHandlerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,12 @@ public function testDeleteMatching(string $pattern, int $expectedDeleteCount, st
175175
*/
176176
public static function provideDeleteMatching(): iterable
177177
{
178+
// Given the key "key_1*", deleteMatching() should delete 13 keys:
179+
// key_1, key_10, key_11, key_12, key_13, key_14, key_15, key_16, key_17, key_18, key_19, key_100, key_101
178180
yield 'prefix' => ['key_1*', 13];
179181

182+
// Given the key "*1", deleteMatching() should delete 11 keys:
183+
// key_1, key_11, key_21, key_31, key_41, key_51, key_61, key_71, key_81, key_91, key_101
180184
yield 'suffix' => ['*1', 11];
181185

182186
yield 'cache-prefix' => ['key_1*', 13, 'foo_'];

0 commit comments

Comments
 (0)