ServerVersion28Test.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <?php
  2. /*
  3. * This file is part of the Predis package.
  4. *
  5. * (c) Daniele Alessandri <suppakilla@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Predis\Profile;
  11. /**
  12. *
  13. */
  14. class ServerVersion28Test extends PredisProfileTestCase
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function getProfile($version = null)
  20. {
  21. return new ServerVersion28();
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getExpectedVersion()
  27. {
  28. return '2.8';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function getExpectedCommands()
  34. {
  35. return array(
  36. 0 => 'exists',
  37. 1 => 'del',
  38. 2 => 'type',
  39. 3 => 'keys',
  40. 4 => 'randomkey',
  41. 5 => 'rename',
  42. 6 => 'renamenx',
  43. 7 => 'expire',
  44. 8 => 'expireat',
  45. 9 => 'ttl',
  46. 10 => 'move',
  47. 11 => 'sort',
  48. 12 => 'dump',
  49. 13 => 'restore',
  50. 14 => 'set',
  51. 15 => 'setnx',
  52. 16 => 'mset',
  53. 17 => 'msetnx',
  54. 18 => 'get',
  55. 19 => 'mget',
  56. 20 => 'getset',
  57. 21 => 'incr',
  58. 22 => 'incrby',
  59. 23 => 'decr',
  60. 24 => 'decrby',
  61. 25 => 'rpush',
  62. 26 => 'lpush',
  63. 27 => 'llen',
  64. 28 => 'lrange',
  65. 29 => 'ltrim',
  66. 30 => 'lindex',
  67. 31 => 'lset',
  68. 32 => 'lrem',
  69. 33 => 'lpop',
  70. 34 => 'rpop',
  71. 35 => 'rpoplpush',
  72. 36 => 'sadd',
  73. 37 => 'srem',
  74. 38 => 'spop',
  75. 39 => 'smove',
  76. 40 => 'scard',
  77. 41 => 'sismember',
  78. 42 => 'sinter',
  79. 43 => 'sinterstore',
  80. 44 => 'sunion',
  81. 45 => 'sunionstore',
  82. 46 => 'sdiff',
  83. 47 => 'sdiffstore',
  84. 48 => 'smembers',
  85. 49 => 'srandmember',
  86. 50 => 'zadd',
  87. 51 => 'zincrby',
  88. 52 => 'zrem',
  89. 53 => 'zrange',
  90. 54 => 'zrevrange',
  91. 55 => 'zrangebyscore',
  92. 56 => 'zcard',
  93. 57 => 'zscore',
  94. 58 => 'zremrangebyscore',
  95. 59 => 'ping',
  96. 60 => 'auth',
  97. 61 => 'select',
  98. 62 => 'echo',
  99. 63 => 'quit',
  100. 64 => 'info',
  101. 65 => 'slaveof',
  102. 66 => 'monitor',
  103. 67 => 'dbsize',
  104. 68 => 'flushdb',
  105. 69 => 'flushall',
  106. 70 => 'save',
  107. 71 => 'bgsave',
  108. 72 => 'lastsave',
  109. 73 => 'shutdown',
  110. 74 => 'bgrewriteaof',
  111. 75 => 'setex',
  112. 76 => 'append',
  113. 77 => 'substr',
  114. 78 => 'blpop',
  115. 79 => 'brpop',
  116. 80 => 'zunionstore',
  117. 81 => 'zinterstore',
  118. 82 => 'zcount',
  119. 83 => 'zrank',
  120. 84 => 'zrevrank',
  121. 85 => 'zremrangebyrank',
  122. 86 => 'hset',
  123. 87 => 'hsetnx',
  124. 88 => 'hmset',
  125. 89 => 'hincrby',
  126. 90 => 'hget',
  127. 91 => 'hmget',
  128. 92 => 'hdel',
  129. 93 => 'hexists',
  130. 94 => 'hlen',
  131. 95 => 'hkeys',
  132. 96 => 'hvals',
  133. 97 => 'hgetall',
  134. 98 => 'multi',
  135. 99 => 'exec',
  136. 100 => 'discard',
  137. 101 => 'subscribe',
  138. 102 => 'unsubscribe',
  139. 103 => 'psubscribe',
  140. 104 => 'punsubscribe',
  141. 105 => 'publish',
  142. 106 => 'config',
  143. 107 => 'persist',
  144. 108 => 'strlen',
  145. 109 => 'setrange',
  146. 110 => 'getrange',
  147. 111 => 'setbit',
  148. 112 => 'getbit',
  149. 113 => 'rpushx',
  150. 114 => 'lpushx',
  151. 115 => 'linsert',
  152. 116 => 'brpoplpush',
  153. 117 => 'zrevrangebyscore',
  154. 118 => 'watch',
  155. 119 => 'unwatch',
  156. 120 => 'object',
  157. 121 => 'slowlog',
  158. 122 => 'client',
  159. 123 => 'pttl',
  160. 124 => 'pexpire',
  161. 125 => 'pexpireat',
  162. 126 => 'psetex',
  163. 127 => 'incrbyfloat',
  164. 128 => 'bitop',
  165. 129 => 'bitcount',
  166. 130 => 'hincrbyfloat',
  167. 131 => 'eval',
  168. 132 => 'evalsha',
  169. 133 => 'script',
  170. 134 => 'time',
  171. 135 => 'scan',
  172. 136 => 'sscan',
  173. 137 => 'zscan',
  174. 138 => 'zlexcount',
  175. 139 => 'zrangebylex',
  176. 140 => 'zremrangebylex',
  177. 141 => 'hscan',
  178. 142 => 'pfadd',
  179. 143 => 'pfcount',
  180. 144 => 'pfmerge',
  181. 145 => 'command',
  182. );
  183. }
  184. }