Commit Graph

28 Commits

Author SHA1 Message Date
Daniele Alessandri a7c906ab4c Apparently the next major version or Redis will be 2.8. 2012-03-31 10:43:50 +02:00
Daniele Alessandri 6d73f4a538 Promote 2.6 as an independent server profile for Redis 2.6.
The development server profile now targets Redis 3.0.
2012-03-11 13:53:28 +01:00
Daniele Alessandri effefcee34 New command: TIME (Redis v2.6-dev). 2012-03-07 12:30:39 +01:00
Daniele Alessandri 371ac91777 [tests] Rewrite the whole test suite to allow more granular testing.
Fix also a few bugs found while rewriting the test suite.

In order to be able to run integration tests, the test suite requires
a version of Redis >= 2.4.0.

The units have been splitted into several different groups using
PHPUnit @group annotation to allow developers to enable, disable
and combine certain types of tests. The available groups are:

  - disconnected: can run without a Redis server online
  - connected: active connection to a Redis server is required
  - commands: test dedicated to a specific Redis command
  - slow: performs operations that can slow down execution;

A list of the available groups can be obtained by running

  phpunit --list-groups

Groups of tests can be disabled or enabled via the XML configuration
file or the standard command-line test runner. Please note that due
to a bug in PHPUnit, older versions ignore the --group option when
the group is excluded in the XML configuration file. Please refer to
http://github.com/sebastianbergmann/phpunit/issues/320 for details

Integration tests in the @connected group check if the command being
tested is defined in the selected server profile (see the value of
the TEST_SERVER_VERSION constant in phpunit.xml). If the command is
not defined in the target server profile, the integration test is
automatically marked as skipped.

We also provide an helper script in the bin directory that can be
used to automatically generate a file with the scheleton of a test
case for a Redis command by specifying the name of the class in the
Predis\Commands namespace. For example, to generate a test case for
SET (represented by the Predis\Commands\StringSet class):

  ./bin/generate-command-test.php --class=StringSet

The realm of a command is automatically inferred from the name of the
class, but it can be set using the --realm option.
2011-12-10 15:26:00 +01:00
Daniele Alessandri 5d04cf540d New commands: INCRBYFLOAT, HINCRBYFLOAT (Redis v2.6-dev). 2011-11-18 16:10:39 +01:00
Daniele Alessandri 51b998720e New commands: PSETEX, PEXPIRE, PEXPIREAT, PTTL (Redis v2.6-dev). 2011-11-18 15:58:36 +01:00
Daniele Alessandri 4e0709ad3d New command: SCRIPT (Redis v2.6-dev).
See http://redis.io/commands/script.
2011-11-18 13:55:03 +01:00
Daniele Alessandri 4e6ed3f26d [phpdoc] Add API documentation.
This is a starting point to add a documentation of the whole set of APIs and
classes of Predis. The next step will be to actually improve and extend it.
2011-10-21 12:54:24 +02:00
Daniele Alessandri 9608a97469 Add a license header to PHP files. 2011-10-18 16:41:46 +02:00
Daniele Alessandri b4d5b19b30 Fix a few oversights. 2011-10-18 16:19:12 +02:00
Daniele Alessandri 20d872a306 Apply some coding style changes. 2011-10-18 15:51:55 +02:00
Daniele Alessandri f19c6335d1 Fix parsing of replies to INFO for Redis 2.4.
The new string format for INFO replies has been postponed to a future version
of Redis, so we just moved the INFO class that handles them to the development
server profile.
2011-10-15 10:21:34 +02:00
Daniele Alessandri fb3088b4d3 Redis 2.4 has now its server profile (but it's not the default one yet). The development profile is now Redis 2.6. 2011-05-31 22:01:15 +02:00
Daniele Alessandri 42521f2558 Do not use new classes for variadic RPUSH, LPUSH, SADD, SREM and HDEL in the 2.4 profile. 2011-05-31 21:26:04 +02:00
Daniele Alessandri 2010774b68 New command: EVALSHA (Redis v2.4-dev). 2011-05-13 21:23:02 +02:00
Daniele Alessandri bd027341be New command: EVAL (Redis v2.4-dev). 2011-05-03 15:07:56 +02:00
Daniele Alessandri b2575bd667 Reorganize some Redis commands classes. 2011-04-25 12:39:21 +02:00
Daniele Alessandri f7a3388865 Adjust formatting of Predis\Profiles\ServerVersionNext. 2011-04-25 09:42:07 +02:00
Daniele Alessandri dd3faa3d53 New command: CLIENT (Redis v2.4-dev). 2011-04-24 09:32:47 +02:00
Daniele Alessandri 819f3ca6ed Implement variadic SREM in the development profile (Redis v2.4). 2011-04-24 09:06:23 +02:00
Daniele Alessandri 8787930977 Implement variadic HDEL in the development profile (Redis v2.4). 2011-04-19 20:49:30 +02:00
Daniele Alessandri a8705b9535 Implement variadic SADD in the development profile (Redis v2.4). 2011-04-19 20:42:50 +02:00
Daniele Alessandri 66f6610c72 Implement variadic RPUSH and LPUSH in the development profile (Redis v2.4). 2011-04-19 20:35:48 +02:00
Daniele Alessandri 9bc50e321e The stable version of Redis will be 2.4. 2011-04-19 20:04:37 +02:00
Daniele Alessandri 6e2bba3ddb Move the definition of the OBJECT commad to the server profile for Redis 2.2. 2011-04-06 18:51:52 +02:00
Daniele Alessandri 80f1cedf79 Add the OBJECT command to the dev server profile. 2011-04-06 12:49:54 +02:00
Daniele Alessandri 6c9b246b2b Implement a new command class for INFO to parse the new reply format for this command in Redis > 2.2. 2011-03-05 15:47:54 +01:00
Daniele Alessandri fda4f32f06 Rename server profile classes to comply with how underscores are interpreted in the PSR-0 standard. 2011-02-27 13:37:03 +01:00