Daniele Alessandri
cfa456fdd1
[tests] Fix a couple of innocuous glitches.
2013-12-22 15:00:51 +01:00
Daniele Alessandri
6a577a0eb5
Apply more phpdoc fixes.
2013-12-22 15:00:51 +01:00
Daniele Alessandri
8357af177e
[test] Fix wrong variable.
2013-12-22 15:00:50 +01:00
Daniele Alessandri
7ebb8a8b42
[tests] Fix a couple of glitches in our base PHPUnit classes.
2013-12-22 15:00:50 +01:00
Daniele Alessandri
728d9dceb5
[tests] No need to reassign $exception.
2013-12-22 15:00:41 +01:00
Daniele Alessandri
a092f6d4da
Fix phpdocs for fluent interfaces.
...
[ci skip]
2013-12-22 13:52:57 +01:00
Daniele Alessandri
3befbb3ac2
Make Pipeline::executeCommand() return $this for fluent interface.
2013-12-22 13:40:36 +01:00
Daniele Alessandri
8d8a618d0e
Add @property-read tags to client options class.
...
[ci skip]
2013-12-22 13:28:22 +01:00
Daniele Alessandri
5e1ea94f4a
Add @property-read tags to parameters class.
...
[ci skip]
2013-12-22 12:59:40 +01:00
Daniele Alessandri
b9b899eaf0
Fix incorrect usage of instance method in static method.
...
We also added a test to check that the socket-based connection backend
throws an exception when unable to resolve hostnames.
2013-12-22 12:38:54 +01:00
Daniele Alessandri
5065541cc6
Remove erroneous duplication of INFO in Redis profiles.
...
This oversight didn't end up in a blatant bug only because the correct
handler definition for INFO replaced the old class in the profile.
2013-12-22 12:23:55 +01:00
Daniele Alessandri
f5a7d8ece8
Add a note about missing break in switch statement.
...
[ci skip]
2013-12-22 12:20:59 +01:00
Daniele Alessandri
25cd43033f
Fix some errors in phpdocs.
...
[ci skip]
2013-12-22 12:12:49 +01:00
Daniele Alessandri
90d8c684f0
Use a more dynamic variant for caching common status responses.
2013-12-22 11:01:54 +01:00
Daniele Alessandri
09f9133df7
Fix small oversight.
...
Bug was not severe since +QUEUED status responses were returned anyway
but they were not cached as expected. We added a test in the suite.
This fixes #142 .
2013-12-22 10:53:32 +01:00
Daniele Alessandri
bff7906f68
Apply minor CS fixes.
...
[ci skip]
2013-12-21 18:24:51 +01:00
Daniele Alessandri
b73606de68
Replace remaining occurrences of "boolean" with "bool" in phpdocs.
...
[ci skip]
2013-12-21 12:48:43 +01:00
Daniele Alessandri
c127d02e92
Remove leftover "use" directive.
...
[ci skip]
2013-12-21 12:46:22 +01:00
Daniele Alessandri
6693980b14
Fix README after renaming of examples.
...
[ci skip]
2013-12-21 12:43:56 +01:00
Daniele Alessandri
7ba465048f
Do not throw exception when connection has been already established.
...
The base abstract connection class now returns a bool to indicate when
the actual connect() operation has been performed on the underlying
resource. This return value is not part of the interface so extending
classes can decide to not return any value.
2013-12-21 12:32:15 +01:00
Daniele Alessandri
5f81bfcde3
Improve handling of -MOVED and -ASK responses.
...
This change improves code reusing and simplifies the internals of
our redis-cluster connection backend.
2013-12-21 11:56:40 +01:00
Daniele Alessandri
2aa97e3e61
Apply fixes for consistency.
...
I know that importing classes and interfaces for the root namespace
using the "use" directive is weird and totally uncommon...
2013-12-21 11:26:09 +01:00
Daniele Alessandri
131a5a4ef9
Fix a few exceptions.
2013-12-21 11:08:29 +01:00
Daniele Alessandri
d1ec791ae9
Rename examples and update some comments.
...
[ci skip]
2013-12-21 10:50:08 +01:00
Daniele Alessandri
8916f9a9ee
Fix a few exception messages.
2013-12-21 10:07:56 +01:00
Daniele Alessandri
3ac4141bcb
[bin] Minor fix in comments.
...
[ci skip]
2013-12-21 10:02:26 +01:00
Daniele Alessandri
587bf0b1e5
[tests] Add $message as third parameter for our custom assertions.
2013-12-19 11:50:39 +01:00
Daniele Alessandri
7cf9cfc496
Update phpdocs.
...
[ci skip]
2013-12-19 11:20:27 +01:00
Daniele Alessandri
f7fea2e430
Update README.
...
[ci skip]
2013-12-18 16:06:34 +01:00
Daniele Alessandri
c51485b318
Update README.
...
[ci skip]
2013-12-18 16:04:22 +01:00
Daniele Alessandri
e1fb9ed1d4
Update README.
...
[ci skip]
2013-12-18 11:52:19 +01:00
Daniele Alessandri
913bcb3b20
Merge branch 'v0.9/hhvm-compatibility'
2013-12-17 16:37:26 +01:00
Daniele Alessandri
2d23edc691
Add a note about Predis on HHVM in the README.
2013-12-17 16:36:03 +01:00
Daniele Alessandri
af2548581e
Add HHVM to the build matrix on Travis CI.
...
We allow failures on builds run against HHVM since it is still being
developed and things could break anytime, but at least this gives us
a decent indicator of the level of compatibility of Predis with this
runtime.
2013-12-17 16:20:48 +01:00
Daniele Alessandri
fdf63bc03d
Make Predis compatible with HHVM (at least 2.3.0).
...
Achieving compatibility actually required a few marginal changes:
- HHVM still has some issues with re-entrant calls to __get(). The
applied change is an hack simply because it is ugly, but it is not
wrong and does not break the signature of the options interface.
- Since we cannot rely on the PHP version to detect the availability
of socket_import_stream(), we switched to function_exists(). As an
added bonus, using function_exists() is twice faster.
- In the test suite we removed an assertion for the message of an
E_WARNING simply because HHVM emits a different message. Checking
for the warning is actually enough in that context.
While the whole test suite passes on HHVM 2.3.0, please remember that
HHVM is still in development and things could break anytime especially
in some obscure corner cases.
2013-12-17 16:09:20 +01:00
Daniele Alessandri
2a6409590c
Run php-cs against test suite.
2013-12-17 12:55:56 +01:00
Daniele Alessandri
02e43143d3
Run php-cs against codebase.
2013-12-17 12:53:36 +01:00
Daniele Alessandri
5529e33047
Rework classes and interfaces in Predis\Command\Processor namespace.
...
- Renamed `Predis\Command\Processor\CommandProcessorInterface`
- Removed `Predis\Command\Processor\CommandProcessorChainInterface`
2013-12-17 10:57:43 +01:00
Daniele Alessandri
1125dc1bdd
Apply minor change in command serialization.
2013-12-16 18:46:17 +01:00
Daniele Alessandri
feb69fb5f2
Update README.
...
[ci skip]
2013-12-16 17:05:49 +01:00
Daniele Alessandri
1d31a47cf4
Apply some tweaks to FAQ.
...
[ci skip]
2013-12-16 16:58:28 +01:00
Daniele Alessandri
35b2c99186
Update FAQ.
...
[ci skip]
2013-12-16 16:52:04 +01:00
Daniele Alessandri
0f34f41ccf
Fix and reword some exception messages.
2013-12-16 15:13:18 +01:00
Daniele Alessandri
43f278fb71
Update testing README.
...
[ci skip]
2013-12-16 11:47:22 +01:00
Daniele Alessandri
b7a7b6838b
Merge branch 'v0.9/fix-bin-scripts'
2013-12-15 17:06:05 +01:00
Daniele Alessandri
714f9ddc64
[bin] Drop extension from scripts in the bin directory.
2013-12-15 17:05:30 +01:00
Daniele Alessandri
d465de7b42
[bin] Handle duplicate class names or aliases in same namespace.
...
This condition can occur when merging multiple class files (with their
own independent "use" directives) in one big file: when imported class
names or aliases clashes, the script now tries to automatically rename
them by defining a new alias in the "use" directive and renaming the
occurences in the buffer containing the class code.
This fix is naive at best, but seems to work fine so we will just live
with it for now.
2013-12-15 17:05:07 +01:00
Daniele Alessandri
405ae4af65
[bin] Fix broken rendering of "use ... as ..." in output.
2013-12-15 17:04:55 +01:00
Daniele Alessandri
7e89719ceb
Revert usage of "short" namespaces in use directives.
...
We started using partially-qualified names as an experiment but we are
reverting to using fully-qualified names + aliases in use directives.
2013-12-15 17:00:45 +01:00
Daniele Alessandri
aa9aafe926
Remove CHANGELOG.NAMING.md.
...
Will be most likely replaced by UPGRADING.md or something like that.
[ci skip]
2013-12-15 14:04:52 +01:00