mirror of
https://github.com/predis/predis.git
synced 2026-10-08 04:46:38 +00:00
Removed NULL assignement for username parameter (#1429)
* Removed NULL assignement for username parameter * Updated unit test * More codestyle fixes * Codestyle fixes
This commit is contained in:
committed by
GitHub
parent
da634d8943
commit
5f70cb1abc
@@ -267,7 +267,7 @@ class RelayConnectionTest extends PredisTestCase
|
||||
*/
|
||||
public function testGetResourceForcesConnection(): void
|
||||
{
|
||||
$connection = new RelayConnection(new Parameters(), new \Relay\Relay());
|
||||
$connection = new RelayConnection(new Parameters(), new Relay());
|
||||
|
||||
$this->assertFalse($connection->isConnected());
|
||||
$connection->getResource();
|
||||
@@ -279,7 +279,7 @@ class RelayConnectionTest extends PredisTestCase
|
||||
*/
|
||||
public function testExecutesCommand(): void
|
||||
{
|
||||
$connection = new RelayConnection(new Parameters(), new \Relay\Relay());
|
||||
$connection = new RelayConnection(new Parameters(), new Relay());
|
||||
|
||||
$this->assertEquals(
|
||||
'OK',
|
||||
@@ -298,7 +298,7 @@ class RelayConnectionTest extends PredisTestCase
|
||||
*/
|
||||
public function testConnectWithOnConnectionCommands(): void
|
||||
{
|
||||
$connection = new RelayConnection(new Parameters(), new \Relay\Relay());
|
||||
$connection = new RelayConnection(new Parameters(), new Relay());
|
||||
$connection->addConnectCommand(new RawCommand('CLIENT', ['SETNAME', 'predis']));
|
||||
|
||||
$connection->connect();
|
||||
|
||||
Reference in New Issue
Block a user