public function ImmutableEventDispatcherTest::testGetListenersDelegates

File

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

Class

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

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testGetListenersDelegates() {
  $this->innerDispatcher
    ->expects($this
    ->once())
    ->method('getListeners')
    ->with('event')
    ->will($this
    ->returnValue('result'));
  $this
    ->assertSame('result', $this->dispatcher
    ->getListeners('event'));
}