1 parent ea34216 commit 4f400a3Copy full SHA for 4f400a3
1 file changed
tests/system/Cache/Handlers/MemcachedHandlerTest.php
@@ -154,7 +154,9 @@ public function testDecrement(): void
154
// A key that doesn't exist yet starts at 0, not at the offset
155
// (Memcached counters are unsigned, so it can't start negative).
156
$this->assertSame(0, $memcachedHandler->decrement(self::$key3, 5));
157
- $this->assertSame(0, $memcachedHandler->get(self::$key3));
+ // Memcached stores counter values as decimal strings on the wire, so
158
+ // a plain get() on a counter key returns a string, not an int.
159
+ $this->assertSame('0', $memcachedHandler->get(self::$key3));
160
}
161
162
public function testClean(): void
0 commit comments