isDisallowedOperation() public method

Returns if the specified command is not allowed for execution in a master slave replication context.
public isDisallowedOperation ( Predis\Command\CommandInterface $command ) : boolean
$command Predis\Command\CommandInterface Command instance.
return boolean
 /**
  * @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);
     }
 }
 /**
  * @group disconnected
  */
 public function testDisallowedCommands()
 {
     $profile = Profile\Factory::getDevelopment();
     $strategy = new ReplicationStrategy();
     foreach ($this->getExpectedCommands('disallowed') as $commandId) {
         $command = $profile->createCommand($commandId);
         $this->assertTrue($strategy->isDisallowedOperation($command), "{$commandId} is expected to be a disallowed operation.");
     }
 }