You are here

public function ImmutableEventDispatcherTest::testDispatchDelegates in Zircon Profile 8

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

File

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

Class

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

Namespace

Symfony\Component\EventDispatcher\Tests

Code

public function testDispatchDelegates() {
  $event = new Event();
  $this->innerDispatcher
    ->expects($this
    ->once())
    ->method('dispatch')
    ->with('event', $event)
    ->will($this
    ->returnValue('result'));
  $this
    ->assertSame('result', $this->dispatcher
    ->dispatch('event', $event));
}