@expectedException \BadMethodCallException
File
- drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php, line 82
Class
- ImmutableEventDispatcherTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\EventDispatcher\Tests
Code
public function testAddSubscriberDisallowed() {
$subscriber = $this
->getMock('Symfony\\Component\\EventDispatcher\\EventSubscriberInterface');
$this->dispatcher
->addSubscriber($subscriber);
}