Exemplo n.º 1
0
 public function isResource($resourceName)
 {
     return parent::isResource($resourceName);
 }
Exemplo n.º 2
0
 /**
  * Tests the resource name
  *
  * @author Nikos Dimopoulos <*****@*****.**>
  * @since  2012-11-12
  */
 public function testResourceName()
 {
     $acl = new PhAclMem();
     $aclResource = new PhAclResource('Customers', 'Customer management');
     $acl->addResource($aclResource . 'search');
     $exists = $acl->isResource('Customers');
     $this->assertFalse($exists, 'Acl\\Resource does not exist in the acl');
 }