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:
Daniele Alessandri
2013-12-15 11:06:43 +01:00
parent c40ad5dd47
commit 6ceebbfbec
13 changed files with 52 additions and 29 deletions
@@ -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'));
}
/**