Closed svycka closed 7 years ago
Can you add a test-case for this, please?
@prolic maybe I could, but not sure what to test :) can you be more specific what should I test.
Write a test that fails without this patch and succeeds with this patch.
@svycka do we need still these conditions in tests:
if (method_exists($eventManager, 'triggerEvent')) {
$eventManager->expects($this->once())
->method('triggerEvent')
->with($event);
} else {
$eventManager->expects($this->once())
->method('trigger')
->with(MvcEvent::EVENT_DISPATCH_ERROR);
}
?
@webimpress correct, this could also be updated.
@prolic anything else?
Thx
because only one listener would be triggered should fix https://github.com/ZF-Commons/zfc-rbac/issues/357