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:
Daniele Alessandri
2012-08-02 17:46:30 +02:00
parent e774a301c4
commit 6e76ea6c7e
15 changed files with 837 additions and 8 deletions
@@ -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"
));
}