/**
  * @expectedException \Wasp\Security\SecurityException
  */
 public function testShouldCreateAccessControlAndDenyAccess()
 {
     RoleManager::add('MANAGER');
     Configuration::write(ConfigurationParameters::ACCESS_CONTROL_LIST_RULES, array('controller/action' => array('MANAGER' => Rule::DENY)));
     $accessControl = new AccessControl();
     $accessControl->hasAuthority(new RoleImpl('MANAGER'), new ResourceImpl('controller/action'));
 }
 public function register()
 {
     parent::register();
     foreach ($this->attributes as $index => $value) {
         Configuration::write($index, $value);
     }
 }
 public static function setUpBeforeClass()
 {
     $configuration = dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'src';
     Configuration::write(ConfigurationParameters::APPLICATION_SOURCE_DIRECTORY, [$configuration]);
 }