mirror of
https://github.com/predis/predis.git
synced 2026-10-10 13:57:22 +00:00
Add test guard for empty bulk replies.
This commit is contained in:
@@ -335,6 +335,14 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
|
||||
});
|
||||
}
|
||||
|
||||
function testResponseReader_EmptyBulkResponse() {
|
||||
$client = new \Predis\Client();
|
||||
$client->getConnection()->setProtocol(new \Predis\Protocols\ComposableTextProtocol());
|
||||
|
||||
$this->assertTrue($client->set('foo', ''));
|
||||
$this->assertEquals('', $client->get('foo'));
|
||||
$this->assertEquals('', $client->get('foo'));
|
||||
}
|
||||
|
||||
/* Client initialization */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user