public function testSetRuleWorksWithResourceInterface() { $roleGuest = new Role\GenericRole('guest'); $this->_acl->addRole($roleGuest); $resourceFoo = new Resource\GenericResource('foo'); $this->_acl->addResource($resourceFoo); $this->_acl->setRule(Acl\Acl::OP_ADD, Acl\Acl::TYPE_ALLOW, $roleGuest, $resourceFoo); }