[EventDispatcher] Added assertion.
This commit is contained in:
parent
ade5de0da1
commit
4ce9ac3a27
@ -221,6 +221,7 @@ class EventDispatcherTest extends \PHPUnit_Framework_TestCase
|
||||
$dispatcher = new EventDispatcher();
|
||||
$dispatcher->addListener('bug.62976', new CallableClass());
|
||||
$dispatcher->removeListener('bug.62976', function() {});
|
||||
$this->assertTrue($dispatcher->hasListeners('bug.62976'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user