/** * Collect options * * @param ModuleOptions $moduleOptions * @return void */ private function collectOptions(ModuleOptions $moduleOptions) { $this->collectedOptions = ['guest_role' => $moduleOptions->getGuestRole(), 'protection_policy' => $moduleOptions->getProtectionPolicy()]; }
public function testThrowExceptionIfMoreThanOneRoleProviderIsSet() { $this->setExpectedException('ZfcRbac\\Exception\\RuntimeException'); $moduleOptions = new ModuleOptions(); $moduleOptions->setRoleProvider(['foo', 'bar']); }