-
Notifications
You must be signed in to change notification settings - Fork 42
Redis auth parameter #66
Redis auth parameter #66
Conversation
+1 :) |
👍 |
$client->connect($this->host, $this->port); | ||
|
||
if ($this->auth) { | ||
$client->auth($this->auth); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add return value check. If the authentication fails, IMO the test should return a Failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added exception for authorization check, but it's overhead, because Redis when password is incorrect throws RedisException and then test will return Failure.
ping :) |
I'm going to merge it, but I'm not satisfied with how missing extensions are inconsistently handled in checks. Checks are not supposed to throw exceptions. Even though the default Runner here, and in ZFTool, will catch all exceptions and convert them into |
I'll take care of the cleanup. |
@Thinkscape, please make a new tag |
@Thinkscape, thanks |
No description provided.