public isDisallowedOperation ( Predis\Command\CommandInterface $command ) : boolean | ||
$command | Predis\Command\CommandInterface | Command instance. |
return | boolean |
public function isDisallowedOperation(CommandInterface $command)
{
return isset($this->disallowed[$command->getId()]);
}
/** * @group disconnected */ public function testDisallowedCommands() { $profile = ServerProfile::getDevelopment(); $strategy = new ReplicationStrategy(); foreach ($this->getExpectedCommands('disallowed') as $commandId) { $command = $profile->createCommand($commandId); $this->assertTrue($strategy->isDisallowedOperation($command), $commandId); } }