File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,29 @@ See [dedicated page](https://github.com/phpredis/phpredis/blob/master/arrays.mar
109109
110110See [ dedicated page] ( https://github.com/phpredis/phpredis/blob/feature/redis_cluster/cluster.markdown#readme ) .
111111
112+ ## Running the unit tests
113+ phpredis uses a small custom unit test suite for testing functionality of the various classes. To run tests, simply do the following:
114+
115+ <pre >
116+ # Run tests for Redis class (note this is the default)
117+ php tests/TestRedis.php --class Redis
118+
119+ # Run tests for RedisArray class
120+ tests/mkring.sh
121+ php tests/TestRedis.php --class RedisArray
122+
123+ # Run tests for the RedisCluster class
124+ test/make-cluster.sh start
125+ php tests/TestRedis.php --class RedisCluster
126+ </pre >
127+
128+ Note that it is possible to run only tests which match a substring of the test itself by passing the additional argument '--test <str >' when invoking.
129+
130+ <pre >
131+ # Just run the 'echo' test
132+ php tests/TestRedis.php --class Redis --test echo
133+ </pre >
134+
112135# Classes and methods
113136-----
114137
You can’t perform that action at this time.
0 commit comments