mirror of
https://github.com/predis/predis.git
synced 2026-08-30 20:21:31 +00:00
[tests] Update tests for Predis\Command\AbstractCommand.
This commit is contained in:
@@ -100,15 +100,21 @@ class CommandTest extends StandardTestCase
|
||||
{
|
||||
$hash = "key-hash";
|
||||
|
||||
$command = $this->getMockForAbstractClass('Predis\Command\AbstractCommand');
|
||||
$command = $this->getMockForAbstractClass('Predis\Command\Command');
|
||||
$command->setRawArguments(array('key'));
|
||||
|
||||
$this->assertNull($command->getHash());
|
||||
|
||||
$command->setHash($hash);
|
||||
$this->assertSame($hash, $command->getHash());
|
||||
}
|
||||
|
||||
$command->setArguments(array('key'));
|
||||
$this->assertNull($command->getHash());
|
||||
|
||||
$command->setHash($hash);
|
||||
$command->setRawArguments(array('key'));
|
||||
$this->assertNull($command->getHash());
|
||||
}
|
||||
/**
|
||||
* @group disconnected
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user