mirror of
https://github.com/predis/predis.git
synced 2026-10-08 12:57:14 +00:00
Rename Predis\Connection\SingleConnectionInterface::pushInitCommand().
The new name is more explicit as it makes obvious that the commands added with it will be executed upon connect().
This commit is contained in:
@@ -68,12 +68,13 @@ class WebdisConnectionTest extends PredisTestCase
|
||||
/**
|
||||
* @group disconnected
|
||||
* @expectedException Predis\NotSupportedException
|
||||
* @expectedExceptionMessage The method Predis\Connection\WebdisConnection::pushInitCommand() is not supported
|
||||
* @expectedExceptionMessage The method Predis\Connection\WebdisConnection::addConnectCommand() is not supported
|
||||
*
|
||||
*/
|
||||
public function testPushingInitCommandsIsNotSupported()
|
||||
public function testAddingConnectCommandsIsNotSupported()
|
||||
{
|
||||
$connection = new WebdisConnection($this->getParameters());
|
||||
$connection->pushInitCommand($this->getProfile()->createCommand('ping'));
|
||||
$connection->addConnectCommand($this->getProfile()->createCommand('ping'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user