This factory is intended to be used to ease setup of \Phalcon\Acl\Adapter\Memory in case \Phalcon\Config is used for configuration.
Example #1
0
 /**
  * @expectedException \Phalcon\Acl\Exception
  * @expectedExceptionMessage Role "user" cannot inherit non-existent role "nonexistentrole".
  * Either such role does not exist or it is set to be inherited before it is actually defined.
  */
 public function testFactoryShouldThrowExceptionIfNonExistentInheritRoleIsSet()
 {
     $config = new Ini(INCUBATOR_FIXTURES . 'Acl/acl.ini');
     $config->acl->role->user->inherit = 'nonexistentrole';
     $factory = new MemoryFactory();
     $factory->create($config->get('acl'));
 }