public function TraceableEventDispatcherTest::testGetListeners in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/Debug/TraceableEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\Debug\TraceableEventDispatcherTest::testGetListeners()
File
- vendor/
symfony/ event-dispatcher/ Tests/ Debug/ TraceableEventDispatcherTest.php, line 37
Class
Namespace
Symfony\Component\EventDispatcher\Tests\DebugCode
public function testGetListeners() {
$dispatcher = new EventDispatcher();
$tdispatcher = new TraceableEventDispatcher($dispatcher, new Stopwatch());
$tdispatcher
->addListener('foo', $listener = function () {
});
$this
->assertSame($dispatcher
->getListeners('foo'), $tdispatcher
->getListeners('foo'));
}