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

Adapted EventListenerIntrospectionTrait to v3 API #20

Merged

Conversation

weierophinney
Copy link
Member

This patch ports the changes from #19 to the develop branch, and adapts them for the v3 API.

This trait is intended to provide a forwards-compatibility shim for use when
testing event listener registration. Methods mimic some of the functionality
already in v2 (via `getEvents()` and `getListeners()`), but in such a way as
to allow common behavior when testing the two versions.

In particular, it provides the assertion method `assertListenerAtPriority()`,
allowing developers to test that a listener was registered for the specified
event at the specified priority; this is useful when testing attachment by
aggregates or of default listeners.
This patch ports the changes from zendframework#19 to the develop branch, and adapts them for
the v3 API.
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zend-eventmanager for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright date is wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update on merge; thanks for the heads-up!

@weierophinney weierophinney merged commit 08d5d54 into zendframework:develop Jan 12, 2016
weierophinney added a commit that referenced this pull request Jan 12, 2016
weierophinney added a commit that referenced this pull request Jan 12, 2016
@weierophinney weierophinney deleted the feature/get-listeners branch January 12, 2016 23:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants