public function ImmutableEventDispatcherTest::testHasListenersDelegates 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::testHasListenersDelegates()
File
- vendor/
symfony/ event-dispatcher/ Tests/ ImmutableEventDispatcherTest.php, line 60
Class
- ImmutableEventDispatcherTest
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\EventDispatcher\TestsCode
public function testHasListenersDelegates() {
$this->innerDispatcher
->expects($this
->once())
->method('hasListeners')
->with('event')
->will($this
->returnValue('result'));
$this
->assertSame('result', $this->dispatcher
->hasListeners('event'));
}