Fix tests.

This commit is contained in:
Raza Mehdi
2020-08-15 01:14:13 +05:00
parent 882d59001f
commit 5edf443141
189 changed files with 1272 additions and 2034 deletions
@@ -23,11 +23,12 @@ class StreamConnectionTest extends PredisConnectionTestCase
/**
* @group disconnected
* @expectedException \Predis\Connection\ConnectionException
* @expectedExceptionMessage `SELECT` failed: ERR invalid DB index [tcp://127.0.0.1:6379]
*/
public function testThrowsExceptionOnInitializationCommandFailure()
{
$this->expectException('Predis\Connection\ConnectionException');
$this->expectExceptionMessage("`SELECT` failed: ERR invalid DB index [tcp://127.0.0.1:6379]");
$cmdSelect = RawCommand::create('SELECT', '1000');
$connection = $this->getMockBuilder(static::CONNECTION_CLASS)