function testMultiExecContext_ServerExceptionInCallableBlock() { $client = RC::createConnection(array('throw_errors' => false)); $client->flushdb(); $replies = $client->multiExec(function ($multi) { $multi->set('foo', 'bar'); $multi->lpush('foo', 'piyo'); // LIST operation on STRING type returns an ERROR $multi->set('hoge', 'piyo'); }); $this->assertInternalType('array', $replies); $this->assertInstanceOf('\\Predis\\ResponseError', $replies[1]); $this->assertTrue($client->exists('foo')); $this->assertTrue($client->exists('hoge')); }