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