Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f67eba8

Browse filesBrowse files
committed
[EventDispatcher] fix merge of #22541 from 2.8
1 parent 85959c2 commit f67eba8
Copy full SHA for f67eba8

File tree

1 file changed

+3
-22
lines changed
Filter options

1 file changed

+3
-22
lines changed

‎src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/EventDispatcher/Tests/Debug/TraceableEventDispatcherTest.php
+3-22Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
16-
use Symfony\Component\EventDispatcher\Debug\WrappedListener;
1716
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
1817
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1918
use Symfony\Component\EventDispatcher\EventDispatcher;
@@ -105,20 +104,10 @@ public function testAddRemoveSubscriber()
105104
$this->assertCount(0, $dispatcher->getListeners('foo'));
106105
}
107106

108-
/**
109-
* @dataProvider isWrappedDataProvider
110-
*
111-
* @param bool $isWrapped
112-
*/
113-
public function testGetCalledListeners($isWrapped)
107+
public function testGetCalledListeners()
114108
{
115-
$dispatcher = new EventDispatcher();
116-
$stopWatch = new Stopwatch();
117-
$tdispatcher = new TraceableEventDispatcher($dispatcher, $stopWatch);
118-
119-
$listener = function () {};
120-
121-
$tdispatcher->addListener('foo', $listener, 5);
109+
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
110+
$tdispatcher->addListener('foo', function () {}, 5);
122111

123112
$listeners = $tdispatcher->getNotCalledListeners();
124113
$this->assertArrayHasKey('data', $listeners['foo.closure']);
@@ -134,14 +123,6 @@ public function testGetCalledListeners($isWrapped)
134123
$this->assertEquals(array(), $tdispatcher->getNotCalledListeners());
135124
}
136125

137-
public function isWrappedDataProvider()
138-
{
139-
return array(
140-
array(false),
141-
array(true),
142-
);
143-
}
144-
145126
public function testGetCalledListenersNested()
146127
{
147128
$tdispatcher = null;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.