public function testGetListenersWhenAddedCallbackListenerIsRemoved()
 {
     $listener = function () {};
     $this->dispatcher->addListener('foo', $listener);
     $this->dispatcher->removeListener('foo', $listener);
     $this->assertSame(array(), $this->dispatcher->getListeners());
 }