public function testDenyNoPermissionException() { $this->setExpectedException('Pop\\Auth\\Exception'); $editor = Role::factory('editor'); $editor->addPermission('edit'); $page = Resource::factory('page'); $a = acl::factory($editor, $page); $a->deny('editor', 'page', 'read'); }