You are here

public function ImmutableEventDispatcherTest::testGetListenersDelegates 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::testGetListenersDelegates()

File

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

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'));
}