Remove Predis\Network\IConnectionSingle::setProtocolOption() for now.

This commit is contained in:
Daniele Alessandri
2011-03-20 10:47:30 +01:00
parent 665e428366
commit ceca866158
6 changed files with 13 additions and 30 deletions
+2 -4
View File
@@ -450,9 +450,8 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
}
function testCommandPipeline_ServerExceptionInCallableBlock() {
$client = RC::getConnection();
$client = RC::createConnection(array('throw_errors' => false));
$client->flushdb();
$client->getConnection()->setProtocolOption('throw_errors', false);
$replies = $client->pipeline(function($pipe) {
$pipe->set('foo', 'bar');
@@ -572,9 +571,8 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
}
function testMultiExecContext_ServerExceptionInCallableBlock() {
$client = RC::getConnection();
$client = RC::createConnection(array('throw_errors' => false));
$client->flushdb();
$client->getConnection()->setProtocolOption('throw_errors', false);
$replies = $client->multiExec(function($multi) {
$multi->set('foo', 'bar');