Commit Graph

141 Commits

Author SHA1 Message Date
Daniele Alessandri b2575bd667 Reorganize some Redis commands classes. 2011-04-25 12:39:21 +02:00
Daniele Alessandri b396eb3c48 Remove code from the test for SLAVEOF. 2011-04-24 10:03:23 +02:00
Daniele Alessandri 944a478272 Remove Predis\Commands\Command::setArguments(). 2011-04-09 09:35:28 +02:00
Daniele Alessandri db95350c37 Reorganize the Predis\Protocols namespace. 2011-04-06 17:52:39 +02:00
Daniele Alessandri da2cd3ee7e Simplify Predis\Profiles\ServerProfile::defineCommand(). 2011-04-04 15:03:14 +02:00
Daniele Alessandri c2a61a3113 Rename Predis\CommandPipeline to Predis\PipelineContext. 2011-04-04 11:31:26 +02:00
Daniele Alessandri 6f51521f81 Rename test file. 2011-04-03 10:55:27 +02:00
Daniele Alessandri d6a445f1ec Fix SINTERSTORE and SUNIONSTORE to accept an array for the list of source keys. 2011-03-27 09:38:30 +02:00
Daniele Alessandri 0f751cabcb Upgrade to PHPUnit 3.5. 2011-03-27 09:15:38 +02:00
Daniele Alessandri ceca866158 Remove Predis\Network\IConnectionSingle::setProtocolOption() for now. 2011-03-20 10:47:30 +01:00
Daniele Alessandri e94fbc3287 Adjust the tests for SUBSTR/GETRANGE since the return value for empty string slices has been fixed in Redis 2.2.2. 2011-03-06 12:45:23 +01:00
Daniele Alessandri 826db07900 Force the test suite to use the 2.2 server profile for now. 2011-03-06 12:39:18 +01:00
Daniele Alessandri 38e76cbbc8 Allow passing an array for the list of source keys to be used in ZUNIONSTORE/ZINTERSTORE. 2011-03-05 11:56:10 +01:00
Daniele Alessandri f8844ef8b8 Rename IServerProfile::registerCommand() to IServerProfile::defineCommand(). 2011-03-05 10:52:38 +01:00
Daniele Alessandri 0d5fb3319d Move Predis\Command and Predis\ICommand to the Predis\Commands namespace. 2011-03-04 19:21:41 +01:00
Daniele Alessandri 1e1a904d1a Update the client features test suite (still needs more test coverage of the whole API). 2011-03-02 17:40:27 +01:00
Daniele Alessandri 89c311d0de Complete redesign of the network connection API, it should make much more sense now. 2011-03-02 10:02:29 +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
Daniele Alessandri 9e0f0078ea Rename test file. 2011-02-25 14:47:10 +01:00
Daniele Alessandri 4ad4b9cf77 Remove direct requires of parts of PHPUnit. 2011-02-25 12:45:11 +01:00
Daniele Alessandri d2b0326087 Fix requiring path of bootstrap.php in external processes spawned by tests. 2011-02-25 12:39:05 +01:00
Jordi Boggiano ac1e6e1846 Fix tests for latest changes, added phpunit.xml.dist file and autoloader in test/bootstrap.php 2011-02-21 14:18:04 +01:00
Daniele Alessandri 237f3e3d7e Rename the 'throw_on_error' client option to 'throw_errors'. 2011-02-15 18:24:38 +01:00
Daniele Alessandri 2b2ca8e8dc Remove trailing spaces in code. 2011-02-15 12:46:19 +01:00
Daniele Alessandri 65c530a13b Add test guard for empty bulk replies. 2011-02-12 21:22:47 +01:00
Daniele Alessandri 09a7a18ac0 Adapt the client features test suite to the new structure of the library. 2011-02-12 16:17:30 +01:00
Daniele Alessandri 3b2681f2c8 Move some classes in new namespaces and refactor some code. 2011-01-08 00:45:46 +01:00
Daniele Alessandri a7ae86689d Test suite: client initialization using an instance of Predis\IConnectionCluster. 2011-01-05 23:03:34 +01:00
Daniele Alessandri 6de7222857 Revert changes to the test suite in 6a7fc49. 2011-01-05 22:55:15 +01:00
Artur Kotyrba fb30e22c30 Added possibility to use custom connection cluster classes in Predis\Client constructor.
Added three methods (used by \Predis\Client) to IConnectionSingle interface.
2011-01-05 22:05:21 +01:00
Daniele Alessandri 1530c7c0d6 Cannot execute with a transaction block after using fluent interface style with Predis\MultiExecBlock. 2011-01-01 11:49:05 +01:00
Daniele Alessandri 11b2f3aca3 Improve fluent-interface style for transactions with CAS. 2011-01-01 11:35:48 +01:00
Daniele Alessandri 6b82b412fb Cannot use the 'retry' option for transactions without providing a function block. 2011-01-01 11:32:23 +01:00
Daniele Alessandri 99042f6b9c Do not fail with empty transactions when using CAS. 2010-12-31 19:40:59 +01:00
Daniele Alessandri 4a497eea79 Add support for optional automatic retries upon aborted transactions. 2010-12-31 18:53:13 +01:00
Daniele Alessandri cf21a43211 Support DISCARD with CAS. 2010-12-31 16:17:31 +01:00
Daniele Alessandri 70487bbfb3 Add support for check-and-set (CAS) for transactions with Predis\MultiExecBlock. 2010-12-31 16:17:24 +01:00
Daniele Alessandri 922beeceea Test suite: tiny fix in a test for LINSERT (again, this time for real). 2010-12-31 16:16:54 +01:00
Daniele Alessandri 02d7400d1f Test suite: tiny fix in a test for LINSERT. 2010-12-21 18:36:43 +01:00
Daniele Alessandri 3a2e977ee0 Test suite: temporary fix for testSetExpire(). 2010-12-18 17:44:06 +01:00
Daniele Alessandri daf88645f2 New command: BRPOPLPUSH (Redis v2.2-dev).
Conflicts:

	lib/Predis.php
2010-12-18 17:40:30 +01:00
Daniele Alessandri ecc7499b47 Test suite: move up testStrlen(). 2010-12-18 17:39:17 +01:00
Daniele Alessandri 64cb73fbb9 New command: GETBIT (Redis v2.2-dev).
Conflicts:

	lib/Predis.php
2010-12-18 17:38:49 +01:00
Daniele Alessandri 0b9bca8ce1 New command: SETBIT (Redis v2.2-dev).
Conflicts:

	lib/Predis.php
2010-12-18 17:36:48 +01:00
Daniele Alessandri e1924551b1 New command: SETRANGE (Redis v2.2-dev).
Conflicts:

	lib/Predis.php
2010-12-18 17:33:15 +01:00
Daniele Alessandri e146fa9e65 Fix a bunch of broken tests. 2010-11-28 17:17:39 +01:00
Daniele Alessandri 21b3fdb3e1 New command: PERSIST (Redis v2.2-dev). 2010-11-28 16:35:25 +01:00
Daniele Alessandri f419d15f82 New command: ZREVRANGEBYSCORE (Redis v2.2-dev). 2010-11-27 12:55:39 +01:00
Daniele Alessandri 9e58ad7648 Test suite: move the trigger guard for the test suite in the common included file. 2010-09-25 16:15:45 +02:00
Daniele Alessandri 1d45649f86 Test suite: add test for WATCH in Predis\MultiExecBlock. 2010-09-25 16:15:13 +02:00