public function ImmutableEventDispatcherTest::testRemoveListenerDisallowed

@expectedException \BadMethodCallException

File

drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php, line 92

Class

ImmutableEventDispatcherTest
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testRemoveListenerDisallowed() {
  $this->dispatcher
    ->removeListener('event', function () {
    return 'foo';
  });
}