File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed
src/Symfony/Component/EventDispatcher/Tests/Debug Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -105,20 +105,10 @@ public function testAddRemoveSubscriber()
105
105
$ this ->assertCount (0 , $ dispatcher ->getListeners ('foo ' ));
106
106
}
107
107
108
- /**
109
- * @dataProvider isWrappedDataProvider
110
- *
111
- * @param bool $isWrapped
112
- */
113
- public function testGetCalledListeners ($ isWrapped )
108
+ public function testGetCalledListeners ()
114
109
{
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 );
122
112
123
113
$ listeners = $ tdispatcher ->getNotCalledListeners ();
124
114
$ this ->assertArrayHasKey ('data ' , $ listeners ['foo.closure ' ]);
@@ -134,14 +124,6 @@ public function testGetCalledListeners($isWrapped)
134
124
$ this ->assertEquals (array (), $ tdispatcher ->getNotCalledListeners ());
135
125
}
136
126
137
- public function isWrappedDataProvider ()
138
- {
139
- return array (
140
- array (false ),
141
- array (true ),
142
- );
143
- }
144
-
145
127
public function testGetCalledListenersNested ()
146
128
{
147
129
$ tdispatcher = null ;
You can’t perform that action at this time.
E60
0 commit comments