You are here

public function ImmutableEventDispatcherTest::testRemoveSubscriberDisallowed in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/event-dispatcher/Tests/ImmutableEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\ImmutableEventDispatcherTest::testRemoveSubscriberDisallowed()

@expectedException \BadMethodCallException

File

vendor/symfony/event-dispatcher/Tests/ImmutableEventDispatcherTest.php, line 99

Class

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

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testRemoveSubscriberDisallowed() {
  $subscriber = $this
    ->getMock('Symfony\\Component\\EventDispatcher\\EventSubscriberInterface');
  $this->dispatcher
    ->removeSubscriber($subscriber);
}