setProtectionPolicy() public method

Set the protection policy for guards
public setProtectionPolicy ( string $protectionPolicy ) : void
$protectionPolicy string
return void
 public function testThrowExceptionForInvalidProtectionPolicy()
 {
     $this->setExpectedException('ZfcRbac\\Exception\\RuntimeException');
     $moduleOptions = new ModuleOptions();
     $moduleOptions->setProtectionPolicy('invalid');
 }