8000 [EventDispatcher] fix merge of #22541 from 2.8 · dmaicher/symfony@148cf9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 148cf9d

Browse files
committed
[EventDispatcher] fix merge of symfony#22541 from 2.8
1 parent 85959c2 commit 148cf9d

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

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

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,10 @@ public function testAddRemoveSubscriber()
105105
$this->assertCount(0, $dispatcher->getListeners('foo'));
106106
}
107107

108-
/**
109-
* @dataProvider isWrappedDataProvider
110-
*
111-
* @param bool $isWrapped
112-
*/
113-
public function testGetCalledListeners($isWrapped)
108+
public function testGetCalledListeners()
114109
{
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);
110+
$tdispatcher = new TraceableEventDispatcher(new EventDispatcher(), new Stopwatch());
111+
$tdispatcher->addListener('foo', function () {}, 5);
122112

123113
$listeners = $tdispatcher->getNotCalledListeners();
124114
$this->assertArrayHasKey('data', $listeners['foo.closure']);
@@ -134,14 +124,6 @@ public function testGetCalledListeners($isWrapped)
134124
$this->assertEquals(array(), $tdispatcher->getNotCalledListeners());
135125
}
136126

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

0 commit comments

Comments
 (0)
0