Skip to content

Commit 125e0a6

Browse files
committed
Update MemcachedTest.php
1 parent 84aec3e commit 125e0a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Dashboards/MemcachedTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ public static function commandDataProvider(): Iterator {
127127
yield 'test appended value' => ['VALUE pu-test-rc-add 0 6\r\ntestaa\r\nEND', 'get pu-test-rc-add'];
128128
yield 'test prepend' => ['STORED', 'prepend pu-test-rc-add 0 0 2\r\npp'];
129129
yield 'test prepended value' => ['VALUE pu-test-rc-add 0 8\r\npptestaa\r\nEND', 'get pu-test-rc-add'];
130+
yield 'test cas set' => ['STORED', 'set pu-test-rc-cas 0 0 5\r\nvalue'];
131+
yield 'test cas fail (badval)' => ['EXISTS', 'cas pu-test-rc-cas 0 0 6 999\r\nvalue2'];
132+
yield 'test cas unchanged value' => ['VALUE pu-test-rc-cas 0 5\r\nvalue\r\nEND', 'get pu-test-rc-cas'];
133+
yield 'test cas miss' => ['NOT_FOUND', 'cas pu-test-rc-cas-miss 0 0 5 123\r\nvalue'];
130134
yield 'test gat' => ['VALUE pu-test-rc-add 0 8\r\npptestaa\r\nEND', 'gat 700 pu-test-rc-add'];
131135
yield 'test touch' => ['TOUCHED', 'touch pu-test-rc-add 0'];
132136
yield 'test set int' => ['STORED', 'set pu-test-rc-int 0 0 1\r\n1'];

0 commit comments

Comments
 (0)