|
3 | 3 | The phpredis extension provides an API for communicating with the [Redis](http://redis.io/) key-value store. It is released under the [PHP License, version 3.01](http://www.php.net/license/3_01.txt).
|
4 | 4 | This code has been developed and maintained by Owlient from November 2009 to March 2011.
|
5 | 5 |
|
6 |
| -You can send comments, patches, questions [here on github](https://github.com/nicolasff/phpredis/issues), to n.favrefelix@gmail.com ([@yowgi](http://twitter.com/yowgi)), or to michael.grunder@gmail.com ([@grumi78](http://twitter.com/grumi78)). |
| 6 | +You can send comments, patches, questions [here on github](https://github.com/phpredis/phpredis/issues), to n.favrefelix@gmail.com ([@yowgi](http://twitter.com/yowgi)), or to michael.grunder@gmail.com ([@grumi78](http://twitter.com/grumi78)). |
7 | 7 |
|
8 | 8 |
|
9 | 9 | # Table of contents
|
@@ -110,27 +110,30 @@ See [dedicated page](https://github.com/phpredis/phpredis/blob/master/arrays.mar
|
110 | 110 | See [dedicated page](https://github.com/phpredis/phpredis/blob/feature/redis_cluster/cluster.markdown#readme).
|
111 | 111 |
|
112 | 112 | ## Running the unit tests
|
| 113 | + |
113 | 114 | phpredis uses a small custom unit test suite for testing functionality of the various classes. To run tests, simply do the following:
|
114 | 115 |
|
115 |
| -<pre> |
| 116 | +~~~ |
116 | 117 | # Run tests for Redis class (note this is the default)
|
117 | 118 | php tests/TestRedis.php --class Redis
|
118 | 119 |
|
119 | 120 | # Run tests for RedisArray class
|
120 |
| -tests/mkring.sh |
| 121 | +tests/mkring.sh start |
121 | 122 | php tests/TestRedis.php --class RedisArray
|
| 123 | +tests/mkring.sh stop |
122 | 124 |
|
123 | 125 | # Run tests for the RedisCluster class
|
124 |
| -test/make-cluster.sh start |
| 126 | +tests/make-cluster.sh start |
125 | 127 | php tests/TestRedis.php --class RedisCluster
|
126 |
| -</pre> |
| 128 | +tests/make-cluster.sh stop |
| 129 | +~~~ |
127 | 130 |
|
128 | 131 | 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 | 132 |
|
130 |
| -<pre> |
| 133 | +~~~ |
131 | 134 | # Just run the 'echo' test
|
132 | 135 | php tests/TestRedis.php --class Redis --test echo
|
133 |
| -</pre> |
| 136 | +~~~ |
134 | 137 |
|
135 | 138 | # Classes and methods
|
136 | 139 | -----
|
|
0 commit comments