Skip to content

Commit 6e34164

Browse files
authored
Delete testBasicUsageWithLongKey64 method
Removed test for PSR-16 minimum key length of 64 characters. Moving it in a seperate PR as suggested by @stof
1 parent 51de1c2 commit 6e34164

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

src/SimpleCacheTest.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,31 +1037,4 @@ public function testObjectDoesNotChangeInCache()
10371037
$cacheObject = $this->cache->get('key');
10381038
$this->assertEquals('value', $cacheObject->foo, 'Object in cache should not have their values changed.');
10391039
}
1040-
1041-
/**
1042-
* Tests the PSR-16 mandated minimum key length of 64 characters.
1043-
*
1044-
* PSR-16 explicitly states: "The key length MUST be at least 64 characters."
1045-
* This test ensures every compliant implementation supports at least 64 chars.
1046-
*
1047-
* @see https://www.php-fig.org/psr/psr-16/
1048-
*/
1049-
public function testBasicUsageWithLongKey64()
1050-
{
1051-
if (isset($this->skippedTests[__FUNCTION__])) {
1052-
$this->markTestSkipped($this->skippedTests[__FUNCTION__]);
1053-
}
1054-
1055-
$key = str_repeat('a', 64);
1056-
1057-
$this->assertFalse($this->cache->has($key));
1058-
$this->assertTrue($this->cache->set($key, 'value'));
1059-
1060-
$this->assertTrue($this->cache->has($key));
1061-
$this->assertSame('value', $this->cache->get($key));
1062-
1063-
$this->assertTrue($this->cache->delete($key));
1064-
1065-
$this->assertFalse($this->cache->has($key));
1066-
}
10671040
}

0 commit comments

Comments
 (0)