An object oriented event emitter for WordPress actions
A familiar event interface that delegates to the global add_action
and do_action
functions of WordPress. It also presents
a much more testable interface as it only uses the WP functions if they are available.
Delegate to WordPress' add_action function. In test environments a local collection of listeners will be used.
Delegate to WordPress' do_action function. In test environments a local collection of listeners will be used.
Delegate to WordPress' add_filter function. In test environments a local collection of listeners will be used.
Delegate to WordPress' apply_filters function. In test environments a local collection of listeners will be used.
Tests use PHPUnit
$ vendor/bin/phpunit