mirror of
https://github.com/predis/predis.git
synced 2026-08-27 18:51:07 +00:00
Add tests for classes in the Predis\Protocol\Text namespace.
This was the only namespace containing classes with no tests.
This commit is contained in:
@@ -37,9 +37,9 @@ class ResponseMultiBulkStreamHandler implements ResponseHandlerInterface
|
||||
{
|
||||
$length = (int) $lengthString;
|
||||
|
||||
if ($length != $lengthString) {
|
||||
if ("$length" != $lengthString) {
|
||||
Helpers::onCommunicationException(new ProtocolException(
|
||||
$connection, "Cannot parse '$length' as data length"
|
||||
$connection, "Cannot parse '$lengthString' as multi-bulk length"
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user