ServerVersion20Test.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 ServerVersion20Test extends PredisProfileTestCase
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function getProfile($version = null)
  20. {
  21. return new ServerVersion20();
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getExpectedVersion()
  27. {
  28. return '2.0';
  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 => 'set',
  49. 13 => 'setnx',
  50. 14 => 'mset',
  51. 15 => 'msetnx',
  52. 16 => 'get',
  53. 17 => 'mget',
  54. 18 => 'getset',
  55. 19 => 'incr',
  56. 20 => 'incrby',
  57. 21 => 'decr',
  58. 22 => 'decrby',
  59. 23 => 'rpush',
  60. 24 => 'lpush',
  61. 25 => 'llen',
  62. 26 => 'lrange',
  63. 27 => 'ltrim',
  64. 28 => 'lindex',
  65. 29 => 'lset',
  66. 30 => 'lrem',
  67. 31 => 'lpop',
  68. 32 => 'rpop',
  69. 33 => 'rpoplpush',
  70. 34 => 'sadd',
  71. 35 => 'srem',
  72. 36 => 'spop',
  73. 37 => 'smove',
  74. 38 => 'scard',
  75. 39 => 'sismember',
  76. 40 => 'sinter',
  77. 41 => 'sinterstore',
  78. 42 => 'sunion',
  79. 43 => 'sunionstore',
  80. 44 => 'sdiff',
  81. 45 => 'sdiffstore',
  82. 46 => 'smembers',
  83. 47 => 'srandmember',
  84. 48 => 'zadd',
  85. 49 => 'zincrby',
  86. 50 => 'zrem',
  87. 51 => 'zrange',
  88. 52 => 'zrevrange',
  89. 53 => 'zrangebyscore',
  90. 54 => 'zcard',
  91. 55 => 'zscore',
  92. 56 => 'zremrangebyscore',
  93. 57 => 'ping',
  94. 58 => 'auth',
  95. 59 => 'select',
  96. 60 => 'echo',
  97. 61 => 'quit',
  98. 62 => 'info',
  99. 63 => 'slaveof',
  100. 64 => 'monitor',
  101. 65 => 'dbsize',
  102. 66 => 'flushdb',
  103. 67 => 'flushall',
  104. 68 => 'save',
  105. 69 => 'bgsave',
  106. 70 => 'lastsave',
  107. 71 => 'shutdown',
  108. 72 => 'bgrewriteaof',
  109. 73 => 'setex',
  110. 74 => 'append',
  111. 75 => 'substr',
  112. 76 => 'blpop',
  113. 77 => 'brpop',
  114. 78 => 'zunionstore',
  115. 79 => 'zinterstore',
  116. 80 => 'zcount',
  117. 81 => 'zrank',
  118. 82 => 'zrevrank',
  119. 83 => 'zremrangebyrank',
  120. 84 => 'hset',
  121. 85 => 'hsetnx',
  122. 86 => 'hmset',
  123. 87 => 'hincrby',
  124. 88 => 'hget',
  125. 89 => 'hmget',
  126. 90 => 'hdel',
  127. 91 => 'hexists',
  128. 92 => 'hlen',
  129. 93 => 'hkeys',
  130. 94 => 'hvals',
  131. 95 => 'hgetall',
  132. 96 => 'multi',
  133. 97 => 'exec',
  134. 98 => 'discard',
  135. 99 => 'subscribe',
  136. 100 => 'unsubscribe',
  137. 101 => 'psubscribe',
  138. 102 => 'punsubscribe',
  139. 103 => 'publish',
  140. 104 => 'config',
  141. );
  142. }
  143. }