File: RedisVersion200Test.php

package info (click to toggle)
php-nrk-predis 1.1.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,844 kB
  • sloc: php: 31,854; makefile: 16
file content (148 lines) | stat: -rw-r--r-- 3,674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?php

/*
 * This file is part of the Predis package.
 *
 * (c) Daniele Alessandri <suppakilla@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Predis\Profile;

/**
 *
 */
class RedisVersion200Test extends PredisProfileTestCase
{
    /**
     * {@inheritdoc}
     */
    public function getProfile($version = null)
    {
        return new RedisVersion200();
    }

    /**
     * {@inheritdoc}
     */
    public function getExpectedVersion()
    {
        return '2.0';
    }

    /**
     * {@inheritdoc}
     */
    public function getExpectedCommands()
    {
        return array(
            0 => 'EXISTS',
            1 => 'DEL',
            2 => 'TYPE',
            3 => 'KEYS',
            4 => 'RANDOMKEY',
            5 => 'RENAME',
            6 => 'RENAMENX',
            7 => 'EXPIRE',
            8 => 'EXPIREAT',
            9 => 'TTL',
            10 => 'MOVE',
            11 => 'SORT',
            12 => 'SET',
            13 => 'SETNX',
            14 => 'MSET',
            15 => 'MSETNX',
            16 => 'GET',
            17 => 'MGET',
            18 => 'GETSET',
            19 => 'INCR',
            20 => 'INCRBY',
            21 => 'DECR',
            22 => 'DECRBY',
            23 => 'RPUSH',
            24 => 'LPUSH',
            25 => 'LLEN',
            26 => 'LRANGE',
            27 => 'LTRIM',
            28 => 'LINDEX',
            29 => 'LSET',
            30 => 'LREM',
            31 => 'LPOP',
            32 => 'RPOP',
            33 => 'RPOPLPUSH',
            34 => 'SADD',
            35 => 'SREM',
            36 => 'SPOP',
            37 => 'SMOVE',
            38 => 'SCARD',
            39 => 'SISMEMBER',
            40 => 'SINTER',
            41 => 'SINTERSTORE',
            42 => 'SUNION',
            43 => 'SUNIONSTORE',
            44 => 'SDIFF',
            45 => 'SDIFFSTORE',
            46 => 'SMEMBERS',
            47 => 'SRANDMEMBER',
            48 => 'ZADD',
            49 => 'ZINCRBY',
            50 => 'ZREM',
            51 => 'ZRANGE',
            52 => 'ZREVRANGE',
            53 => 'ZRANGEBYSCORE',
            54 => 'ZCARD',
            55 => 'ZSCORE',
            56 => 'ZREMRANGEBYSCORE',
            57 => 'PING',
            58 => 'AUTH',
            59 => 'SELECT',
            60 => 'ECHO',
            61 => 'QUIT',
            62 => 'INFO',
            63 => 'SLAVEOF',
            64 => 'MONITOR',
            65 => 'DBSIZE',
            66 => 'FLUSHDB',
            67 => 'FLUSHALL',
            68 => 'SAVE',
            69 => 'BGSAVE',
            70 => 'LASTSAVE',
            71 => 'SHUTDOWN',
            72 => 'BGREWRITEAOF',
            73 => 'SETEX',
            74 => 'APPEND',
            75 => 'SUBSTR',
            76 => 'BLPOP',
            77 => 'BRPOP',
            78 => 'ZUNIONSTORE',
            79 => 'ZINTERSTORE',
            80 => 'ZCOUNT',
            81 => 'ZRANK',
            82 => 'ZREVRANK',
            83 => 'ZREMRANGEBYRANK',
            84 => 'HSET',
            85 => 'HSETNX',
            86 => 'HMSET',
            87 => 'HINCRBY',
            88 => 'HGET',
            89 => 'HMGET',
            90 => 'HDEL',
            91 => 'HEXISTS',
            92 => 'HLEN',
            93 => 'HKEYS',
            94 => 'HVALS',
            95 => 'HGETALL',
            96 => 'MULTI',
            97 => 'EXEC',
            98 => 'DISCARD',
            99 => 'SUBSCRIBE',
            100 => 'UNSUBSCRIBE',
            101 => 'PSUBSCRIBE',
            102 => 'PUNSUBSCRIBE',
            103 => 'PUBLISH',
            104 => 'CONFIG',
        );
    }
}