Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

zend-eventmanager 2.6.2

Choose a tag to compare

@weierophinney weierophinney released this 12 Jan 23:30
· 225 commits to master since this release

Added

  • #19 adds a new trait, Zend\EventManager\Test\EventListenerIntrospectionTrait, intended for composition in unit tests. It provides a number of methods that can be used to retrieve listeners with or without associated priority, and the assertion assertListenerAtPriority(callable $listener, $priority, $event, EventManager $events, $message = ''), which can be used for testing that a listener was registered at the specified priority with the specified event.

    The features in this patch are intended to facilitate testing against both version 2 and version 3 of zend-eventmanager, as it provides a consistent API for retrieving lists of events and listeners between the two versions.

Deprecated

  • Nothing.

Removed

  • Nothing.

Fixed

  • Nothing.