Daniele Alessandri
a894f470bd
Add an "autoload.php" utility script for autoloading in examples and tests.
2011-11-28 10:19:11 +01:00
Daniele Alessandri
0fee0c6d97
Remove the underscore prefix for names of private/protected fields.
2011-11-25 14:17:11 +01:00
Daniele Alessandri
2c1f349925
[test] Use phpunit to specify the parameters of the server used by the suite.
...
This is especially handy because users can now easily override them without
modifying the source code of the test suite and just by creating a phpunit.xml
file that is automatically picked up by phpunit over the phpunit.xml.dist file
shipped within the repository.
2011-11-18 20:54:58 +01:00
Daniele Alessandri
d784838447
[test] Sleep one second to give BGSAVE the time to complete.
2011-11-18 20:43:48 +01:00
H. Westphal
22cb11d057
Fixed typo.
2011-11-13 21:03:22 +01:00
Gun.io Whitespace Robot
b9ca78ac43
Remove whitespace [Gun.io WhitespaceBot]
2011-10-21 10:50:42 -04:00
Daniele Alessandri
9608a97469
Add a license header to PHP files.
2011-10-18 16:41:46 +02:00
Daniele Alessandri
20d872a306
Apply some coding style changes.
2011-10-18 15:51:55 +02:00
Daniele Alessandri
4251664095
Change the way we enable/disable the safety catch to run the test suite.
...
Now we check for the presence of the file "test/enable.tests" to enable the
test suite instead of relying on the value of a constant defined in PHP. In
this way we can prevent commiting an enabled test suite by mistake since the
above mentioned file is not tracked by Git (see .gitignore)..
2011-10-15 10:58:02 +02:00
Daniele Alessandri
e070f83dc5
Test suite: move tests for case-insensitive handling of commands names.
2011-10-02 23:29:03 +02:00
Daniele Alessandri
5e41657363
Use the new Predis\Autoloader class for tests and examples.
2011-10-02 12:07:52 +02:00
Jurian Sluiman
49355b0881
Provide better name for test method
...
testMagicUppercase()? I don't know where I got that one from...
Just changed the method name to something more describring the
actual test.
2011-09-28 18:05:46 +02:00
Jurian Sluiman
0d28395aa0
Remove additional test
...
CreateCommand and supportsCommand are the only two methods which need
to be changes, so test for only those two methods.
2011-09-28 17:34:21 +02:00
Jurian Sluiman
07584f859c
Add methods to test for uppercase and lowercase commands
...
At this moment predis is only capable of lowercase commands, the test
adds the requirement to provide both lowercase, uppercase (and even
mixed case) commands.
2011-09-26 20:33:45 +02:00
Daniele Alessandri
d59556cae1
Rename the Predis\Protocols namespace to Predis\Protocol.
2011-06-04 15:45:01 +02:00
Daniele Alessandri
6ad73c782a
Move classes related to MULTI/EXEC abstraction to the Predis\Transaction namespace.
2011-06-02 17:20:18 +02:00
Daniele Alessandri
e048ac2d51
Move the PipelineContext class in the Predis\Pipeline namespace.
2011-06-02 16:03:33 +02:00
Daniele Alessandri
2012963ed0
Add the Predis\IReplyObject interface (used to mark returned objects that must skip reply parsing).
2011-05-21 11:04:15 +02:00
Daniele Alessandri
cc2349c785
Change how error messages for server-side errors are handled.
2011-05-14 10:34:22 +02:00
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