public function ImmutableEventDispatcherTest::testRemoveListenerDisallowed in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/ImmutableEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\ImmutableEventDispatcherTest::testRemoveListenerDisallowed()
@expectedException \BadMethodCallException
File
- vendor/
symfony/ event-dispatcher/ Tests/ ImmutableEventDispatcherTest.php, line 91
Class
- ImmutableEventDispatcherTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\EventDispatcher\TestsCode
public function testRemoveListenerDisallowed() {
$this->dispatcher
->removeListener('event', function () {
return 'foo';
});
}