File
- drupal/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/Tests/ImmutableEventDispatcherTest.php, line 39
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));
}